From 080732ae5cc0ae32be807e608c6687ef685d88c2 Mon Sep 17 00:00:00 2001 From: Germano Cavalcante Date: Wed, 29 Apr 2020 12:12:28 -0300 Subject: [PATCH] Fix crash with Orbit Around Selection Missing check of `NULL` `op` introduced in rBc57e4418bb85. --- source/blender/editors/transform/transform_generics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/transform/transform_generics.c b/source/blender/editors/transform/transform_generics.c index 19055c8045b..a21df9f66f5 100644 --- a/source/blender/editors/transform/transform_generics.c +++ b/source/blender/editors/transform/transform_generics.c @@ -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];