]> gerrit.simantics Code Review - simantics/3d.git/commitdiff
Use a bit darker grey color for elbows 27/3027/1
authorMarko Luukkainen <marko.luukkainen@semantum.fi>
Wed, 17 Jul 2019 16:03:20 +0000 (19:03 +0300)
committerMarko Luukkainen <marko.luukkainen@semantum.fi>
Wed, 17 Jul 2019 16:03:20 +0000 (19:03 +0300)
gitlab #10

Change-Id: I40fce24e14ebceb7a74fe88c52381bce725757d6

org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/TurnComponent.java

index 6050b60ff9c8d779fca938d6b8907093f3598fe4..5f8139f42d919bfb40f3a22131f7302a1a25f85d 100644 (file)
@@ -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};
+       }
 }