diff options
author | Sven Gothel <[email protected]> | 2023-03-11 07:22:35 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-03-11 07:22:35 +0100 |
commit | 63372e2517bbd94a340808b0cf15fb556eae18b8 (patch) | |
tree | 28d1539ef37ee939401c436c5cce83747296a41f /src/graphui/classes/com/jogamp/graph/ui/gl/Scene.java | |
parent | d27baa9f6980d6e2b570999607b003a11393ea95 (diff) |
GraphUI: Shape: Add build-in resize w/ 1-pointer-click and drag in 1/4th bottom-left or bottom-right corner. Rename translate -> position.
Diffstat (limited to 'src/graphui/classes/com/jogamp/graph/ui/gl/Scene.java')
-rw-r--r-- | src/graphui/classes/com/jogamp/graph/ui/gl/Scene.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/gl/Scene.java b/src/graphui/classes/com/jogamp/graph/ui/gl/Scene.java index a87dd9a23..834c1abbc 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/gl/Scene.java +++ b/src/graphui/classes/com/jogamp/graph/ui/gl/Scene.java @@ -205,8 +205,8 @@ public class Scene implements GLEventListener{ private static Comparator<Shape> shapeZAscComparator = new Comparator<Shape>() { @Override public int compare(final Shape s1, final Shape s2) { - final float s1Z = s1.getBounds().getMinZ()+s1.getTranslate()[2]; - final float s2Z = s2.getBounds().getMinZ()+s2.getTranslate()[2]; + final float s1Z = s1.getBounds().getMinZ()+s1.getPosition()[2]; + final float s2Z = s2.getBounds().getMinZ()+s2.getPosition()[2]; if( FloatUtil.isEqual(s1Z, s2Z, FloatUtil.EPSILON) ) { return 0; } else if( s1Z < s2Z ){ |