Salome HOME
Sub objects should not be visualized as the preview of the current operation.
[modules/shaper.git] / src / PartSet / PartSet_DataTreeModel.h
index ff96baf9b6deb42ce92800a1076806d7fdc51289..0e45f455595c3ed370444894f4c53913b84a1279 100644 (file)
@@ -74,6 +74,10 @@ class PartSet_PartModel : public PartSet_FeaturesModel
       : PartSet_FeaturesModel(theParent)
   {
   }
+  ~PartSet_PartModel()
+  {
+    myPart = FeaturePtr();
+  }
 
   /// Set part id
   /// \param theId a new id