From: mpv Date: Wed, 11 May 2016 11:28:58 +0000 (+0300) Subject: Fix for the problem if disappeared sketch elements (on Apply) inside of sketch in... X-Git-Tag: V_2.3.1~91 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=658fccce59f75b0cfa7c3f3d45f1ffb295ed24be;p=modules%2Fshaper.git Fix for the problem if disappeared sketch elements (on Apply) inside of sketch in Part --- diff --git a/src/Model/Model_Update.cpp b/src/Model/Model_Update.cpp index 8f5359772..fc2f8dd98 100755 --- a/src/Model/Model_Update.cpp +++ b/src/Model/Model_Update.cpp @@ -33,7 +33,7 @@ using namespace std; Model_Update MY_UPDATER_INSTANCE; /// the only one instance initialized on load of the library -#define DEB_UPDATE +//#define DEB_UPDATE Model_Update::Model_Update() { @@ -476,7 +476,8 @@ bool Model_Update::processFeature(FeaturePtr theFeature) // this checking must be after the composite feature sub-elements processing: // composite feature status may depend on it's subelements - if (theFeature->data()->execState() == ModelAPI_StateInvalidArgument || isReferencedInvalid) { + if ((theFeature->data()->execState() == ModelAPI_StateInvalidArgument || isReferencedInvalid) && + theFeature->getKind() != "Part") { // don't disable Part because it will make disabled all the features (performance and problems with the current feature) #ifdef DEB_UPDATE std::cout<<"Invalid args "<name()<