]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Model/Model_ResultPart.cpp
Salome HOME
Remove of composite boolean feature implementation: with sub-sketch
[modules/shaper.git] / src / Model / Model_ResultPart.cpp
index 5023340b1b5f8f6a08a712b665966a4e20921e9d..5523e7fbd5b21d14552a973f925ebba12ed33335 100644 (file)
@@ -112,7 +112,7 @@ std::shared_ptr<GeomAPI_Shape> Model_ResultPart::shape()
 {
   if (myShape.IsNull()) {
     DocumentPtr aDoc = Model_ResultPart::partDoc();
-    if (aDoc.get()) {
+    if (aDoc.get() && aDoc->isOpened()) {
       const std::string& aBodyGroup = ModelAPI_ResultBody::group();
       TopoDS_Compound aResultComp;
       BRep_Builder aBuilder;