]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2278 Cannot validate a Sketch. Feature should be stored in cache, not result...
authornds <nds@opencascade.com>
Wed, 22 Nov 2017 11:10:40 +0000 (14:10 +0300)
committernds <nds@opencascade.com>
Wed, 22 Nov 2017 11:11:13 +0000 (14:11 +0300)
src/PartSet/PartSet_ExternalObjectsMgr.cpp

index a33d6c39168c31af1885e267f36d7d9930e9ef39..793940ccab1e13b733d4cef8ba3c6ab6a40a1d2d 100755 (executable)
@@ -77,7 +77,7 @@ ObjectPtr PartSet_ExternalObjectsMgr::externalObject(const ObjectPtr& theSelecte
     FeaturePtr aCreatedFeature;
     aSelectedObject = PartSet_Tools::createFixedObjectByExternal(theShape,
       theSelectedObject, theSketch, theTemporary, aCreatedFeature);
-    if (aSelectedObject.get() && theTemporary)
+    if (aCreatedFeature.get() && theTemporary)
         myExternalObjectValidated = aCreatedFeature;
   }
   return aSelectedObject;