diff options
Diffstat (limited to 'source/blender/editors/object')
-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; } |