aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-09-05 02:27:44 +0200
committerSven Gothel <[email protected]>2023-09-05 02:27:44 +0200
commit05bb1255e9feab213fb2cc463049623a57c2e1fa (patch)
treed6205bbe8632e19ca0171400502a96fd26156f02 /src
parent6d9c0fc96485da515789921eb9d3ef8988807e54 (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.java4
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