if (!aFeature.get() || !isEditOperation())
return;
+ if (aFeature.get() && isEditOperation())
+ aFeature->setStable(false);
+
myVisualizedObjects.clear();
// store hidden result features
std::list<ResultPtr> aResults = aFeature->results();
if (myVisualizedObjects.find(aFeature) != myVisualizedObjects.end()) {
aFeature->setDisplayed(false);
}
- aFeature->setStable(true);
if (myVisualizedObjects.size() > 0)
Events_Loop::loop()->flush(Events_Loop::loop()->eventByName(EVENT_OBJECT_TO_REDISPLAY));
}
void ModuleBase_OperationFeature::setFeature(FeaturePtr theFeature)
{
myFeature = theFeature;
- myFeature->setStable(false);
myIsEditing = true;
}
aDoc->setCurrentFeature(feature(), false);
}
- startOperation();
+ //Already called startOperation();
emit started();
}
if (aPropertyPanel)
aPropertyPanel->cleanContent();
+ myFeature->setStable(true);
+
SessionPtr aMgr = ModelAPI_Session::get();
if (myIsEditing) {
DocumentPtr aDoc = aMgr->activeDocument();
ModuleBase_IPropertyPanel* aPropertyPanel = propertyPanel();
if (aPropertyPanel)
aPropertyPanel->cleanContent();
+
+ myFeature->setStable(true);
SessionPtr aMgr = ModelAPI_Session::get();
/// Set current feature and remeber old current feature