Salome HOME
Issue #115 The "computed" for all constraints
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_ConstraintRadius.cpp
index 133bc91bb74e8639694c2193eb7e372e1b58518d..36ec6c384b0f9d7e9231dddf90d408ac268575a9 100644 (file)
@@ -55,7 +55,9 @@ void SketchPlugin_ConstraintRadius::execute()
     }
     boost::shared_ptr<ModelAPI_AttributeDouble> aValueAttr = boost::dynamic_pointer_cast<
         ModelAPI_AttributeDouble>(data()->attribute(SketchPlugin_Constraint::VALUE()));
-    aValueAttr->setValue(aRadius);
+    if(!aValueAttr->isInitialized()) {
+      aValueAttr->setValue(aRadius);
+    }
   }
 }