diff options
author | Sven Gothel <[email protected]> | 2023-09-05 02:27:44 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-09-05 02:27:44 +0200 |
commit | 05bb1255e9feab213fb2cc463049623a57c2e1fa (patch) | |
tree | d6205bbe8632e19ca0171400502a96fd26156f02 /src | |
parent | 6d9c0fc96485da515789921eb9d3ef8988807e54 (diff) |
GraphUI Scene: Only set dbgBorderThickness on shape if not zero and shape has no border yet, i.e. don't override
Diffstat (limited to 'src')
-rw-r--r-- | src/graphui/classes/com/jogamp/graph/ui/Scene.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/Scene.java b/src/graphui/classes/com/jogamp/graph/ui/Scene.java index ded7a9336..2cb392c83 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/Scene.java +++ b/src/graphui/classes/com/jogamp/graph/ui/Scene.java @@ -250,7 +250,9 @@ public final class Scene implements Container, GLEventListener { } @Override public void addShape(final Shape s) { - s.setBorder(dbgBorderThickness); + if( !s.hasBorder() && !FloatUtil.isZero(dbgBorderThickness) ) { + s.setBorder(dbgBorderThickness); + } shapes.add(s); } @Override |