[Bf-blender-cvs] [90e253d974b] blender2.8: Fix T59387: Axis target crash
Sebastian Parborg
noreply at git.blender.org
Wed Dec 19 20:35:08 CET 2018
Commit: 90e253d974b60daca20e08667c98a6920243f5c5
Author: Sebastian Parborg
Date: Thu Dec 20 06:32:51 2018 +1100
Branches: blender2.8
https://developer.blender.org/rB90e253d974b60daca20e08667c98a6920243f5c5
Fix T59387: Axis target crash
===================================================================
M source/blender/editors/object/object_transform.c
===================================================================
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;
}
More information about the Bf-blender-cvs
mailing list