Skip to content

Commit

Permalink
Fix Blender Navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
larnu authored and wwmayer committed Jun 13, 2018
1 parent 3c3239a commit c8c10c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Gui/BlenderNavigationStyle.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit c8c10c1

Please sign in to comment.