Fix crash with Orbit Around Selection

Missing check of `NULL` `op` introduced in rBc57e4418bb85.
This commit is contained in:
2020-04-29 12:12:28 -03:00
parent b7bcd0a87c
commit 080732ae5c

View File

@@ -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];