Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorGermano Cavalcante <germano.costa@ig.com.br>2020-04-29 18:12:28 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2020-04-29 18:12:28 +0300
commit080732ae5cc0ae32be807e608c6687ef685d88c2 (patch)
treef3bbf95aaeeb08b5267ffe995796725c0a0ea7a3 /source
parentb7bcd0a87c9df2f11d7249c64768e9526b2048bd (diff)
Fix crash with Orbit Around Selection
Missing check of `NULL` `op` introduced in rBc57e4418bb85.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/transform/transform_generics.c2
1 files changed, 1 insertions, 1 deletions
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];