Skip to content

Commit d55ca52

Browse files
committed
Build
1 parent acc1966 commit d55ca52

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

build/jsroot.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -170994,13 +170994,9 @@ class TAnnotation3DPainter extends TTextPainter {
170994170994

170995170995
if (fp?.mode3d && !this.use_2d) {
170996170996
const mesh = build3dlatex(text, '', this, fp);
170997-
170998170997
mesh.traverse(o => o.geometry?.rotateX(Math.PI / 2));
170999-
mesh.position.x = fp.grx(text.fX);
171000-
mesh.position.y = fp.gry(text.fY);
171001-
mesh.position.z = fp.grz(text.fZ);
171002-
mesh.rotation.z = getRotation(fp.camera, mesh);
171003-
170998+
mesh.position.set(fp.grx(text.fX), fp.gry(text.fY), fp.grz(text.fZ));
170999+
mesh.rotation.set(0, 0, getRotation(fp.camera, mesh));
171004171000
fp.processRender3D = true;
171005171001
fp.add3DMesh(mesh, this, true);
171006171002
fp.render3D(100);
@@ -171033,7 +171029,9 @@ class TAnnotation3DPainter extends TTextPainter {
171033171029
new_y = this.axisToSvg('y', pos.y, true);
171034171030
makeTranslate(this.getG(), new_x - this.pos_x, new_y - this.pos_y);
171035171031
} else
171036-
fp.get3DMeshes(this).forEach(mesh => { mesh.rotation.z = getRotation(fp.camera, mesh); });
171032+
fp.get3DMeshes(this).forEach(mesh => {
171033+
mesh.rotation.set(0, 0, getRotation(fp.camera, mesh));
171034+
});
171037171035
}
171038171036

171039171037
/** @summary draw TAnnotation3D object */

0 commit comments

Comments
 (0)