Skip to content

Commit

Permalink
+ fixes #1482: v0.14 Mirrored objects parent the original object
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Jan 12, 2015
1 parent bdfaaee commit 5289967
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/Mod/Part/Gui/ViewProviderMirror.cpp
Expand Up @@ -174,18 +174,19 @@ void ViewProviderMirror::unsetEdit(int ModNum)

std::vector<App::DocumentObject*> ViewProviderMirror::claimChildren() const
{
// Request not to list mirrored object as child (#0001482)
std::vector<App::DocumentObject*> temp;
temp.push_back(static_cast<Part::Mirroring*>(getObject())->Source.getValue());
//temp.push_back(static_cast<Part::Mirroring*>(getObject())->Source.getValue());
return temp;
}

bool ViewProviderMirror::onDelete(const std::vector<std::string> &)
{
// get the input shape
Part::Mirroring* pMirroring = static_cast<Part::Mirroring*>(getObject());
App::DocumentObject *pSource = pMirroring->Source.getValue();
if (pSource)
Gui::Application::Instance->showViewProvider(pSource);
//Part::Mirroring* pMirroring = static_cast<Part::Mirroring*>(getObject());
//App::DocumentObject *pSource = pMirroring->Source.getValue();
//if (pSource)
// Gui::Application::Instance->showViewProvider(pSource);

return true;
}
Expand Down

0 comments on commit 5289967

Please sign in to comment.