From: Marko Luukkainen Date: Wed, 17 Jul 2019 16:03:20 +0000 (+0300) Subject: Use a bit darker grey color for elbows X-Git-Tag: v1.43.0~244 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;ds=sidebyside;h=da31b712fb2f97fd67900fdd0b97ed59942a02db;p=simantics%2F3d.git Use a bit darker grey color for elbows gitlab #10 Change-Id: I40fce24e14ebceb7a74fe88c52381bce725757d6 --- 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}; + } }