Skip to content

Commit 739c4b4

Browse files
committed
update check for the existance of the manipulator
1 parent 4179d35 commit 739c4b4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/main/java/eu/mihosoft/vrl/v3d

src/main/java/eu/mihosoft/vrl/v3d/CSG.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2911,10 +2911,10 @@ public CSG makeKeepaway(Number sn) {
29112911

29122912
}
29132913
public boolean hasManipulator() {
2914-
return manipulator!=null;
2914+
return manipulator.get(uniqueId) != null;
29152915
}
29162916
public Affine getManipulator() {
2917-
if (manipulator.get(uniqueId) == null)
2917+
if (!hasManipulator() )
29182918
manipulator.put(uniqueId, new Affine());
29192919
return manipulator.get(uniqueId);
29202920
}

0 commit comments

Comments
 (0)