Fix T82753: Crash using add-object tool when gizmos are disabled
This commit is contained in:
parent
64ab084ca5
commit
979fe4f1be
Notes:
blender-bot
2023-04-04 07:45:26 +02:00
Referenced by commit8fd27c152a
, Correct T82753 Fix from979fe4f1be
Referenced by issue #82753, New Add Object tool crashes with specific startup file
|
@ -763,7 +763,10 @@ static void view3d_interactive_add_begin(bContext *C, wmOperator *op, const wmEv
|
|||
ipd->snap_gizmo = gzgroup->gizmos.first;
|
||||
}
|
||||
|
||||
preview_plane_cursor_visible_set(gzgroup, false);
|
||||
/* Can be NULL when gizmos are disabled. */
|
||||
if (gzgroup->customdata != NULL) {
|
||||
preview_plane_cursor_visible_set(gzgroup, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue