From da31b712fb2f97fd67900fdd0b97ed59942a02db Mon Sep 17 00:00:00 2001 From: Marko Luukkainen Date: Wed, 17 Jul 2019 19:03:20 +0300 Subject: [PATCH] Use a bit darker grey color for elbows gitlab #10 Change-Id: I40fce24e14ebceb7a74fe88c52381bce725757d6 --- .../org/simantics/plant3d/scenegraph/TurnComponent.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/TurnComponent.java b/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/TurnComponent.java index 6050b60f..5f8139f4 100644 --- a/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/TurnComponent.java +++ b/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/TurnComponent.java @@ -80,4 +80,12 @@ public class TurnComponent extends PipelineComponent { public Vector3d getNormal() { return getTurnAxis(); } + + @Override + protected double[] getColor() { + if (getControlPoint() == null || !getControlPoint().isFixed()) + return new double[]{0.6,0.6,0.6}; + else + return new double[]{1.0,0.0,0.0}; + } } -- 2.47.0