+ fixes #0001482: v0.14 Mirrored objects parent the original object

This commit is contained in:
wmayer 2015-01-13 00:03:20 +01:00
parent bdfaaee833
commit 5289967304

View File

@ -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;
}