Fix crash with Orbit Around Selection
Missing check of `NULL` `op` introduced in rBc57e4418bb85.
This commit is contained in:
parent
b7bcd0a87c
commit
080732ae5c
Notes:
blender-bot
2023-02-14 10:21:11 +01:00
Referenced by issue #76240, Blender 2.90 crash if rotate viewport in editmode
|
@ -1596,7 +1596,7 @@ void initTransInfo(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *eve
|
|||
t->around = V3D_AROUND_CENTER_BOUNDS;
|
||||
}
|
||||
|
||||
if ((prop = RNA_struct_find_property(op->ptr, "constraint_axis")) &&
|
||||
if (op && (prop = RNA_struct_find_property(op->ptr, "constraint_axis")) &&
|
||||
RNA_property_is_set(op->ptr, prop)) {
|
||||
bool constraint_axis[3];
|
||||
|
||||
|
|
Loading…
Reference in New Issue