From: Artem Zhidkov Date: Wed, 15 Jul 2020 13:41:23 +0000 (+0300) Subject: Task #3236: Generalization of extrusion X-Git-Tag: V9_6_0a1~58 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9fca2f287720d204905b40a042705c2afc13af4a;p=modules%2Fshaper.git Task #3236: Generalization of extrusion Get rid of clearing the results of extrusion by hand. Leave it for the model update. --- diff --git a/src/FeaturesPlugin/FeaturesPlugin_CompositeSketch.cpp b/src/FeaturesPlugin/FeaturesPlugin_CompositeSketch.cpp index 8ee137663..bdda2db8b 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_CompositeSketch.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_CompositeSketch.cpp @@ -309,15 +309,3 @@ void storeSubShape( } } } - -//================================================================================================= -void FeaturesPlugin_CompositeSketch::attributeChanged(const std::string& theID) -{ - if (theID == BASE_OBJECTS_ID()) { - AttributeSelectionListPtr anObjects = selectionList(BASE_OBJECTS_ID()); - if (anObjects->size() == 0 || anObjects->selectionType() != myCurrentSelectionType) { - myCurrentSelectionType = anObjects->selectionType(); - removeResults(0); // clear the results - } - } -} diff --git a/src/FeaturesPlugin/FeaturesPlugin_CompositeSketch.h b/src/FeaturesPlugin/FeaturesPlugin_CompositeSketch.h index 555e35874..441d78b87 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_CompositeSketch.h +++ b/src/FeaturesPlugin/FeaturesPlugin_CompositeSketch.h @@ -66,10 +66,6 @@ public: /// structures of the owner (the remove from the document will be done outside just after). FEATURESPLUGIN_EXPORT virtual void removeFeature(std::shared_ptr theFeature); - /// On change of attribute of the result update presentation of this result: - /// for the current moment there are only presentation attributes assigned to results - FEATURESPLUGIN_EXPORT virtual void attributeChanged(const std::string& theID); - protected: enum InitFlags { InitSketchLauncher = 1 << 0,