Salome HOME
Improve the update mechanism. Fix for the issue #828.
[modules/shaper.git] / src / Model / Model_Document.h
index 997765a85fc6e0c738808a8361541e67933ae28d..d82b853f65131b7c4bdb7a7c2a338e6fd50deb81 100644 (file)
@@ -154,11 +154,10 @@ class Model_Document : public ModelAPI_Document
   /// Creates a part results
   MODEL_EXPORT virtual std::shared_ptr<ModelAPI_ResultPart> createPart(
       const std::shared_ptr<ModelAPI_Data>& theFeatureData, const int theIndex = 0);
-  //! Copies a part result, keeping the same data
+  //! Copies a part result, keeping the reference to origin
   MODEL_EXPORT virtual std::shared_ptr<ModelAPI_ResultPart> copyPart(
-      const std::shared_ptr<ModelAPI_Result>& theOldPart, 
-      const std::shared_ptr<ModelAPI_ResultPart>& theOrigin, 
-      const int theIndex = 0);
+    const std::shared_ptr<ModelAPI_ResultPart>& theOrigin,
+    const std::shared_ptr<ModelAPI_Data>& theFeatureData, const int theIndex = 0);
   /// Creates a group results
   MODEL_EXPORT virtual std::shared_ptr<ModelAPI_ResultGroup> createGroup(
       const std::shared_ptr<ModelAPI_Data>& theFeatureData, const int theIndex = 0);
@@ -261,6 +260,7 @@ class Model_Document : public ModelAPI_Document
   friend class Model_AttributeRefAttr;
   friend class Model_AttributeRefList;
   friend class Model_ResultPart;
+  friend class Model_ResultCompSolid;
   friend class DFBrowser;
 
  private: