diff options
author | Sebastian Parborg <zeddb> | 2018-12-19 22:32:51 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-12-19 22:33:55 +0300 |
commit | 90e253d974b60daca20e08667c98a6920243f5c5 (patch) | |
tree | 9352cb295537faced0d83393fbdb8ed5c695ade3 | |
parent | 205b0d4651d866c45442acf7066eff276245efa9 (diff) |
Fix T59387: Axis target crash
-rw-r--r-- | source/blender/editors/object/object_transform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_transform.c b/source/blender/editors/object/object_transform.c index 4ef0f62db72..1620d1f82f9 100644 --- a/source/blender/editors/object/object_transform.c +++ b/source/blender/editors/object/object_transform.c @@ -1454,7 +1454,7 @@ static int object_transform_axis_target_invoke(bContext *C, wmOperator *op, cons ViewContext vc; ED_view3d_viewcontext_init(C, &vc); - if (!object_is_target_compat(vc.obact)) { + if (vc.obact == NULL || !object_is_target_compat(vc.obact)) { /* Falls back to texture space transform. */ return OPERATOR_PASS_THROUGH; } |