Gui: [skip ci] improve commands Std_ViewSaveCamera & Std_ViewRestoreCamera to save/restore camera per view

Implement resetToHomePosition() for Blender style
This commit is contained in:
wmayer
2020-11-27 12:27:25 +01:00
parent ed3394cce3
commit ac5c22bfc7
2 changed files with 13 additions and 19 deletions

View File

@@ -145,6 +145,10 @@ SbBool BlenderNavigationStyle::processSoEvent(const SoEvent * const ev)
processed = true;
viewer->saveHomePosition();
break;
case SoKeyboardEvent::R:
processed = true;
viewer->resetToHomePosition();
break;
case SoKeyboardEvent::S:
case SoKeyboardEvent::HOME:
case SoKeyboardEvent::LEFT_ARROW: