Fix Blender Navigation

This commit is contained in:
larnu
2018-06-13 11:37:41 +02:00
committed by wmayer
parent 3c3239ae29
commit c8c10c117b

View File

@@ -285,11 +285,13 @@ SbBool BlenderNavigationStyle::processSoEvent(const SoEvent * const ev)
const SoLocation2Event * const event = (const SoLocation2Event *) ev;
if (this->currentmode == NavigationStyle::ZOOMING) {
this->zoomByCursor(posn, prevnormalized);
newmode = NavigationStyle::SELECTION;
processed = true;
}
else if (this->currentmode == NavigationStyle::PANNING) {
float ratio = vp.getViewportAspectRatio();
panCamera(viewer->getSoRenderManager()->getCamera(), ratio, this->panningplane, posn, prevnormalized);
newmode = NavigationStyle::SELECTION;
processed = true;
}
else if (this->currentmode == NavigationStyle::DRAGGING) {