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
@@ -79,24 +79,6 @@ TaskDlgFeatureParameters* ViewProviderPipe::getEditDialog() {
|
||||
return new TaskDlgPipeParameters(this, false);
|
||||
}
|
||||
|
||||
bool ViewProviderPipe::onDelete(const std::vector<std::string> &s)
|
||||
{/*
|
||||
PartDesign::Pipe* pcPipe = getObject<PartDesign::Pipe>();
|
||||
|
||||
// get the Sketch
|
||||
Sketcher::SketchObject *pcSketch = 0;
|
||||
if (pcPipe->Sketch.getValue())
|
||||
pcSketch = static_cast<Sketcher::SketchObject*>(pcPipe->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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
void ViewProviderPipe::highlightReferences(ViewProviderPipe::Reference mode, bool on)
|
||||
{
|
||||
PartDesign::Pipe* pcPipe = getObject<PartDesign::Pipe>();
|
||||
|
||||
Reference in New Issue
Block a user