[Bf-blender-cvs] [080732ae5cc] master: Fix crash with Orbit Around Selection

Germano Cavalcante noreply at git.blender.org
Wed Apr 29 17:12:36 CEST 2020


Commit: 080732ae5cc0ae32be807e608c6687ef685d88c2
Author: Germano Cavalcante
Date:   Wed Apr 29 12:12:28 2020 -0300
Branches: master
https://developer.blender.org/rB080732ae5cc0ae32be807e608c6687ef685d88c2

Fix crash with Orbit Around Selection

Missing check of `NULL` `op` introduced in rBc57e4418bb85.

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

M	source/blender/editors/transform/transform_generics.c

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

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



More information about the Bf-blender-cvs mailing list