]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Set sketch constraint color for coincidence
authorvsv <vitaly.smetannikov@opencascade.com>
Fri, 3 Apr 2015 08:15:47 +0000 (11:15 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Fri, 3 Apr 2015 08:15:47 +0000 (11:15 +0300)
src/SketchPlugin/SketchPlugin_ConstraintCoincidence.cpp

index a78e1b4efc2d0b7b0aeddfc959586679345ecb63..ce8fa25de2daa4b3f1637189d2bf912210e683ef 100644 (file)
@@ -36,7 +36,9 @@ AISObjectPtr SketchPlugin_ConstraintCoincidence::getAISObject(AISObjectPtr thePr
   AISObjectPtr anAIS = thePrevious;
   if (!anAIS) {
     anAIS = SketcherPrs_Factory::coincidentConstraint(this, sketch()->coordinatePlane());
-    anAIS->setColor(0, 0, 255);
+  std::vector<int> aRGB = Config_PropManager::color("Visualization", "sketch_constraint_color",
+                                                    SKETCH_DIMENSION_COLOR);
+  anAIS->setColor(aRGB[0], aRGB[1], aRGB[2]);
   }
   return anAIS;
 }