Commit: bb3d999571ac30f293ff172cac7dcf8b9f4a77fb
Author: Campbell Barton
Date:   Tue Oct 23 15:16:49 2018 +1100
Branches: blender2.8
https://developer.blender.org/rBbb3d999571ac30f293ff172cac7dcf8b9f4a77fb

Fix T57190: loopcut crash w/o overlays

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

M       source/blender/editors/mesh/editmesh_loopcut.c

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

diff --git a/source/blender/editors/mesh/editmesh_loopcut.c 
b/source/blender/editors/mesh/editmesh_loopcut.c
index 1ca3549090f..b69609a9fa8 100644
--- a/source/blender/editors/mesh/editmesh_loopcut.c
+++ b/source/blender/editors/mesh/editmesh_loopcut.c
@@ -454,7 +454,7 @@ static int ringcut_invoke(bContext *C, wmOperator *op, 
const wmEvent *event)
                ARegion *ar = CTX_wm_region(C);
                wmGizmoMap *gzmap = ar->gizmo_map;
                wmGizmoGroup *gzgroup = gzmap ? WM_gizmomap_group_find(gzmap, 
"VIEW3D_GGT_mesh_preselect_edgering") : NULL;
-               if (gzgroup != NULL) {
+               if ((gzgroup != NULL) && gzgroup->gizmos.first) {
                        wmGizmo *gz = gzgroup->gizmos.first;
                        const int object_index = RNA_int_get(gz->ptr, 
"object_index");
                        const int edge_index = RNA_int_get(gz->ptr, 
"edge_index");

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

Reply via email to