]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for the delete of extrusion created on some sketch crash
authormpv <mpv@opencascade.com>
Wed, 6 Apr 2016 14:39:13 +0000 (17:39 +0300)
committermpv <mpv@opencascade.com>
Wed, 6 Apr 2016 14:39:13 +0000 (17:39 +0300)
src/Model/Model_Update.cpp

index 6e9f446bb28dae21bb59670364968e39260746b2..d88c1fec3d55430ffec2f27d3ec52cfa2c54c29d 100644 (file)
@@ -60,6 +60,8 @@ Model_Update::Model_Update()
 }
 
 void Model_Update::addModified(FeaturePtr theFeature, FeaturePtr theReason) {
+  if (!theFeature->data()->isValid())
+    return; // delete an extrusion created on the sketch
   if (!theFeature->isPreviewNeeded() && !myIsFinish) {
     myProcessOnFinish.insert(theFeature);
 #ifdef DEB_UPDATE