[skip CI] [FEM] fix a comment

- remove misleading comment
- add a comment
This commit is contained in:
Uwe
2022-03-24 14:52:28 +01:00
parent d5fd3f996e
commit 5212bd79fe
2 changed files with 2 additions and 17 deletions

View File

@@ -163,23 +163,7 @@ void ViewProviderFemAnalysis::unsetEdit(int ModNum)
bool ViewProviderFemAnalysis::onDelete(const std::vector<std::string> &)
{
// get the support and Sketch
//PartDesign::Pad* pcPad = static_cast<PartDesign::Pad*>(getObject());
//Sketcher::SketchObject *pcSketch = 0;
//App::DocumentObject *pcSupport = 0;
//if (pcPad->Sketch.getValue()){
// pcSketch = static_cast<Sketcher::SketchObject*>(pcPad->Sketch.getValue());
// pcSupport = pcSketch->Support.getValue();
//}
// if abort command deleted the object the support is visible again
//if (pcSketch && Gui::Application::Instance->getViewProvider(pcSketch))
// Gui::Application::Instance->getViewProvider(pcSketch)->show();
//if (pcSupport && Gui::Application::Instance->getViewProvider(pcSupport))
// Gui::Application::Instance->getViewProvider(pcSupport)->show();
// do nothing special on deletion
return true;
}

View File

@@ -98,6 +98,7 @@ public:
//observer for the color bar
virtual void OnChange(Base::Subject< int >& rCaller, int rcReason);
// handling when object is deleted
virtual bool onDelete(const std::vector<std::string>&);
virtual bool canDelete(App::DocumentObject* obj) const;