PartDesign: Unify deletion behavior
This unifies deletion behavior for all PartDesign features ensuring that sketches that were used to create these features show after deletion and that the tip is properly transfered.
This commit is contained in:
committed by
Chris Hennes
parent
be3b9edd33
commit
cf951bae6b
@@ -71,23 +71,6 @@ TaskDlgFeatureParameters* ViewProviderLoft::getEditDialog() {
|
||||
return new TaskDlgLoftParameters(this);
|
||||
}
|
||||
|
||||
bool ViewProviderLoft::onDelete(const std::vector<std::string> & /*s*/)
|
||||
{/*
|
||||
PartDesign::Loft* pcLoft = getObject<PartDesign::Loft>();
|
||||
|
||||
// get the Sketch
|
||||
Sketcher::SketchObject *pcSketch = 0;
|
||||
if (pcLoft->Sketch.getValue())
|
||||
pcSketch = static_cast<Sketcher::SketchObject*>(pcLoft->Sketch.getValue());
|
||||
|
||||
// if abort command deleted the object the sketch is visible again
|
||||
if (pcSketch && Gui::Application::Instance->getViewProvider(pcSketch))
|
||||
Gui::Application::Instance->getViewProvider(pcSketch)->show();
|
||||
|
||||
return ViewProvider::onDelete(s);*/
|
||||
return true;
|
||||
}
|
||||
|
||||
void ViewProviderLoft::highlightProfile(bool on)
|
||||
{
|
||||
PartDesign::Loft* pcLoft = getObject<PartDesign::Loft>();
|
||||
|
||||
Reference in New Issue
Block a user