Gui: MayaGesture navigation fixes (#20948)
* Gui: Gesture and MayaGesture style disable H key in editing mode * Gui: MayaGesture style go back to IDLE after dragging/panning/zooming * Gui: MayaGesture more Maya like zoom behavior
This commit is contained in:
@@ -315,7 +315,8 @@ public:
|
||||
bool press = (kbev->getState() == SoKeyboardEvent::DOWN);
|
||||
switch (kbev->getKey()) {
|
||||
case SoKeyboardEvent::H:
|
||||
if (!press) {
|
||||
// Disable H key in editing mode because of conflict with sketcher
|
||||
if (!ns.viewer->isEditing() && !press) {
|
||||
ns.setupPanningPlane(ns.viewer->getCamera());
|
||||
ns.lookAtPoint(kbev->getPosition());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user