[Bf-blender-cvs] [76dfbee423e] master: Fix T67472: Gizmo overlap causes cursor to get stuck
Campbell Barton
noreply at git.blender.org
Thu Jul 25 02:57:56 CEST 2019
Commit: 76dfbee423e8ba886fd72bca7ae9e6f220c59844
Author: Campbell Barton
Date: Thu Jul 25 10:53:04 2019 +1000
Branches: master
https://developer.blender.org/rB76dfbee423e8ba886fd72bca7ae9e6f220c59844
Fix T67472: Gizmo overlap causes cursor to get stuck
===================================================================
M source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c
===================================================================
diff --git a/source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c b/source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c
index 534474a6221..ee96515c27f 100644
--- a/source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c
+++ b/source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c
@@ -973,7 +973,8 @@ bool WM_gizmomap_cursor_set(const wmGizmoMap *gzmap, wmWindow *win)
bool wm_gizmomap_highlight_set(wmGizmoMap *gzmap, const bContext *C, wmGizmo *gz, int part)
{
if ((gz != gzmap->gzmap_context.highlight) || (gz && part != gz->highlight_part)) {
- const bool init_last_cursor = (gzmap->gzmap_context.highlight == NULL);
+ const bool init_last_cursor = !(gzmap->gzmap_context.highlight &&
+ gzmap->gzmap_context.last_cursor != -1);
if (gzmap->gzmap_context.highlight) {
gzmap->gzmap_context.highlight->state &= ~WM_GIZMO_STATE_HIGHLIGHT;
gzmap->gzmap_context.highlight->highlight_part = -1;
More information about the Bf-blender-cvs
mailing list