Skip to content

Commit 3bc55cc

Browse files
committed
Fix - geometry with TGeoNodeOffset
Basic TGeoPatternX/Y/Z patterns were handled incorrectly
1 parent 00b2f37 commit 3bc55cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/JSRootGeoBase.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1662,7 +1662,7 @@
16621662

16631663
matrix = new THREE.Matrix4();
16641664

1665-
switch (node.fFinder._typename.charAt[node.fFinder._typename.length-1]) {
1665+
switch (node.fFinder._typename[node.fFinder._typename.length-1]) {
16661666
case 'X': matrix.setPosition(new THREE.Vector3(_shift, 0, 0)); break;
16671667
case 'Y': matrix.setPosition(new THREE.Vector3(0, _shift, 0)); break;
16681668
case 'Z': matrix.setPosition(new THREE.Vector3(0, 0, _shift)); break;

0 commit comments

Comments
 (0)