]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/TurnComponent.java
Using SWT thread with Plant3d
[simantics/3d.git] / 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};
+       }
 }