Get rid of clearing the results of extrusion by hand. Leave it for the model update.
}
}
}
-
-//=================================================================================================
-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
- }
- }
-}
/// structures of the owner (the remove from the document will be done outside just after).
FEATURESPLUGIN_EXPORT virtual void removeFeature(std::shared_ptr<ModelAPI_Feature> 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,