0001087: Inventor Navigation continues with released Mouse Button
This commit is contained in:
@@ -87,6 +87,7 @@ void CmdInspectElement::activated(int iMsg)
|
||||
if (view) {
|
||||
Gui::View3DInventorViewer* viewer = view->getViewer();
|
||||
viewer->setEditing(true);
|
||||
viewer->setRedirectToSceneGraphEnabled(true);
|
||||
viewer->setRedirectToSceneGraph(true);
|
||||
viewer->setEditingCursor(QCursor(Gui::BitmapFactory().pixmap("mesh_pipette"),4,29));
|
||||
viewer->addEventCallback(SoButtonEvent::getClassTypeId(),
|
||||
|
||||
@@ -436,6 +436,7 @@ void ViewProviderInspection::inspectCallback(void * ud, SoEventCallback * n)
|
||||
view->setEditing(false);
|
||||
view->getWidget()->setCursor(QCursor(Qt::ArrowCursor));
|
||||
view->setRedirectToSceneGraph(false);
|
||||
view->setRedirectToSceneGraphEnabled(false);
|
||||
view->removeEventCallback(SoButtonEvent::getClassTypeId(), inspectCallback);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user