Salome HOME
setDisplayed has to be called in order to synchronize internal state of the object
[modules/shaper.git] / src / Model / Model_FeatureValidator.cpp
index a809abe461a5d1653edcd6a4e8e5b3af2c817858..8cec7f4b7849ef1cf6edccede77472c3a3b9c03a 100644 (file)
@@ -23,7 +23,7 @@ bool Model_FeatureValidator::isValid(const std::shared_ptr<ModelAPI_Feature>& th
 
   std::shared_ptr<ModelAPI_Data> aData = theFeature->data();
   // "Action" features has no data, but still valid. e.g "Remove Part"  
-  if (!aData) {
+  if (!aData->isValid()) {
     return theFeature->isAction();
   }
   if (!aData->isValid())