Salome HOME
add custom configuration for construction point color
[modules/shaper.git] / src / ConstructionPlugin / ConstructionPlugin_Point.cpp
index 9b1744d325f2f3c66fc1c06994a6cadd938772b9..0129d391e1b784d3172c3f97709018f9261b4192 100644 (file)
@@ -144,7 +144,9 @@ void ConstructionPlugin_Point::execute()
   removeResults(1); // for case the point type was switched from multi-results type
   std::shared_ptr<ModelAPI_ResultConstruction> aConstr = document()->createConstruction(data());
   aConstr->setInfinite(true);
-  aConstr->setShape(aShape);
+  aConstr->setShape(aShape);  
+  aConstr->setColor(ModelAPI_ResultConstruction::ModelApi_PointColor::DEFAULT_COLOR(),
+                    ModelAPI_ResultConstruction::ModelApi_PointColor::COLOR_CONFIG_NAME()); /// set point color
   setResult(aConstr);
 }