mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-22 11:07:17 +02:00
[ui] Viewer3D: TransformGizmo - removing FrameAction
- Moving the mouse's dependent events inside the MouseHandler and removing the FrameAction. - MouseHandler is only enabled when the gizmo is selected. There is no infinite loop waiting for an event.
This commit is contained in:
parent
f9d57cadff
commit
b234a766a9
2 changed files with 86 additions and 101 deletions
|
@ -21,10 +21,11 @@ ObjectPicker {
|
|||
hoverEnabled: true
|
||||
|
||||
onPressed: {
|
||||
mouseController.enabled = true
|
||||
mouseController.objectPicker = this
|
||||
root.isPressed = true
|
||||
pickedChanged(this)
|
||||
screenPoint = pick.position
|
||||
mouseController.currentPosition = pick.position
|
||||
pickedChanged(this)
|
||||
}
|
||||
onEntered: {
|
||||
gizmoMaterial.ambient = "white"
|
||||
|
@ -35,6 +36,8 @@ ObjectPicker {
|
|||
onReleased: {
|
||||
gizmoMaterial.ambient = gizmoBaseColor
|
||||
root.isPressed = false
|
||||
mouseController.objectPicker = null
|
||||
mouseController.enabled = false
|
||||
pickedChanged(this)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue