Gui: refactor gizmo attachment code
This commit is contained in:
committed by
Kacper Donat
parent
e21f616974
commit
6282b7c08d
@@ -111,25 +111,6 @@ void ViewProviderPart::applyTransparency(float transparency, std::vector<App::Ma
|
||||
}
|
||||
}
|
||||
|
||||
void ViewProviderPart::setEditViewer(Gui::View3DInventorViewer* viewer, int ModNum)
|
||||
{
|
||||
ViewProviderPartExt::setEditViewer(viewer, ModNum);
|
||||
|
||||
if (gizmoContainer) {
|
||||
gizmoContainer->setUpAutoScale(viewer->getSoRenderManager()->getCamera());
|
||||
|
||||
auto originPlacement = App::GeoFeature::getGlobalPlacement(getObject())
|
||||
* getObjectPlacement().inverse();
|
||||
gizmoContainer->attachViewer(viewer, originPlacement);
|
||||
}
|
||||
}
|
||||
|
||||
void ViewProviderPart::setGizmoContainer(Gui::GizmoContainer* gizmoContainer)
|
||||
{
|
||||
assert(gizmoContainer);
|
||||
this->gizmoContainer = gizmoContainer;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
void ViewProviderShapeBuilder::buildNodes(const App::Property* prop, std::vector<SoNode*>& nodes) const
|
||||
|
||||
Reference in New Issue
Block a user