diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-08-27 07:24:00 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-08-27 07:25:05 +0300 |
commit | 2435850961b2be5a34c61d8eeb7a6bc0dadebf46 (patch) | |
tree | 3c6f0e0ead5f812c061ac659753f941f0f8bef5e /source/blender/editors/transform | |
parent | 963a991a20de2a57c14c58f56391f0818e30c043 (diff) |
Fix crash transforming origins when no editable origins exist
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r-- | source/blender/editors/transform/transform_conversions.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c index 94a19514a86..845ff43bed5 100644 --- a/source/blender/editors/transform/transform_conversions.c +++ b/source/blender/editors/transform/transform_conversions.c @@ -7722,6 +7722,10 @@ static void trans_obdata_in_obmode_ensure_object(TransInfo *t, Object *ob) void trans_obdata_in_obmode_update_all(TransInfo *t) { + if (t->obdata_in_obmode_map == NULL) { + return; + } + struct Main *bmain = CTX_data_main(t->context); BKE_scene_graph_evaluated_ensure(t->depsgraph, bmain); |