Fix T59387: Axis target crash
This commit is contained in:
committed by
Campbell Barton
parent
205b0d4651
commit
90e253d974
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user