Fix T59387: Axis target crash

This commit is contained in:
Sebastian Parborg
2018-12-20 06:32:51 +11:00
committed by Campbell Barton
parent 205b0d4651
commit 90e253d974

View File

@@ -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;
}