From 3f9cf46387aced1e032add4fe903b7d3ef72edc2 Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 22 Nov 2017 14:10:40 +0300 Subject: [PATCH] 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) --- src/PartSet/PartSet_ExternalObjectsMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2