From: nds Date: Wed, 22 Nov 2017 11:10:40 +0000 (+0300) Subject: Issue #2278 Cannot validate a Sketch. Feature should be stored in cache, not result... X-Git-Tag: V_2.10.0RC~147 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3f9cf46387aced1e032add4fe903b7d3ef72edc2;p=modules%2Fshaper.git Issue #2278 Cannot validate a Sketch. Feature should be stored in cache, not result. It is possible that result is empty (in the issue Geom_BSplineCurve is tried on for the projection, projection can not create result on this object, so it is NULL) --- diff --git a/src/PartSet/PartSet_ExternalObjectsMgr.cpp b/src/PartSet/PartSet_ExternalObjectsMgr.cpp index a33d6c391..793940cca 100755 --- a/src/PartSet/PartSet_ExternalObjectsMgr.cpp +++ b/src/PartSet/PartSet_ExternalObjectsMgr.cpp @@ -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;