From 9fca2f287720d204905b40a042705c2afc13af4a Mon Sep 17 00:00:00 2001 From: Artem Zhidkov Date: Wed, 15 Jul 2020 16:41:23 +0300 Subject: [PATCH] Task #3236: Generalization of extrusion Get rid of clearing the results of extrusion by hand. Leave it for the model update. --- .../FeaturesPlugin_CompositeSketch.cpp | 12 ------------ src/FeaturesPlugin/FeaturesPlugin_CompositeSketch.h | 4 ---- 2 files changed, 16 deletions(-) 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, -- 2.39.2