diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-01-22 08:51:31 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-01-22 08:52:17 +0300 |
commit | ee3c177dd3d54b3b3a500dce392683edfe730586 (patch) | |
tree | efd2f955a14f992833021bcfda310c766efde1ba /source/blender/windowmanager/intern | |
parent | a93cbb70cd6ac32193ca3b656c47f620ef10a4d2 (diff) |
Fix T60112: Smooth crashes w/ multiple views
Diffstat (limited to 'source/blender/windowmanager/intern')
-rw-r--r-- | source/blender/windowmanager/intern/wm_event_system.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c index a2850a7554b..5feacea9666 100644 --- a/source/blender/windowmanager/intern/wm_event_system.c +++ b/source/blender/windowmanager/intern/wm_event_system.c @@ -2057,7 +2057,12 @@ static int wm_handler_operator_call(bContext *C, ListBase *handlers, wmEventHand wmGizmoGroupType *gzgt = WM_gizmogrouptype_find(idname, false); if (gzgt != NULL) { if ((gzgt->flag & WM_GIZMOGROUPTYPE_TOOL_INIT) != 0) { - WM_gizmo_group_type_ensure_ptr(gzgt); + ARegion *ar = CTX_wm_region(C); + if (ar != NULL) { + wmGizmoMapType *gzmap_type = WM_gizmomaptype_ensure(&gzgt->gzmap_params); + WM_gizmo_group_type_ensure_ptr_ex(gzgt, gzmap_type); + WM_gizmomaptype_group_init_runtime_with_region(gzmap_type, gzgt, ar); + } } } } |