Commit: 90788adb665ae0b011a0cbc668c3fcfd0cb5f24b
Author: Campbell Barton
Date:   Thu Nov 2 23:52:03 2017 +1100
Branches: blender2.8
https://developer.blender.org/rB90788adb665ae0b011a0cbc668c3fcfd0cb5f24b

UI: workaround glitch refreshing the toolbar

===================================================================

M       source/blender/windowmanager/intern/wm_operators.c

===================================================================

diff --git a/source/blender/windowmanager/intern/wm_operators.c 
b/source/blender/windowmanager/intern/wm_operators.c
index 0783d364d48..814be6a1d32 100644
--- a/source/blender/windowmanager/intern/wm_operators.c
+++ b/source/blender/windowmanager/intern/wm_operators.c
@@ -1783,7 +1783,8 @@ static int wm_operator_tool_set_exec(bContext *C, 
wmOperator *op)
                
WM_manipulator_group_type_ensure(workspace->tool.manipulator_group);
        }
 
-       ED_region_tag_redraw(CTX_wm_region(C));
+       /* For some reason redraw fails with menus (even though 'ar' isn't the 
menu's region). */
+       ED_area_tag_redraw(sa);
 
        return OPERATOR_FINISHED;
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to