[Bf-blender-cvs] [d09f2ed] master: Fix T38864: Crash with curves and follow path

Campbell Barton noreply at git.blender.org
Thu Feb 27 09:33:34 CET 2014


Commit: d09f2ed322b2b11d16d5c19ac8a5799c1b717b36
Author: Campbell Barton
Date:   Thu Feb 27 19:32:45 2014 +1100
https://developer.blender.org/rBd09f2ed322b2b11d16d5c19ac8a5799c1b717b36

Fix T38864: Crash with curves and follow path

===================================================================

M	source/blender/blenkernel/intern/constraint.c

===================================================================

diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c
index 30e0c31..415c84a 100644
--- a/source/blender/blenkernel/intern/constraint.c
+++ b/source/blender/blenkernel/intern/constraint.c
@@ -1155,7 +1155,7 @@ static void followpath_get_tarmat(bConstraint *con, bConstraintOb *cob, bConstra
 {
 	bFollowPathConstraint *data = con->data;
 	
-	if (VALID_CONS_TARGET(ct)) {
+	if (VALID_CONS_TARGET(ct) && (ct->tar->type == OB_CURVE)) {
 		Curve *cu = ct->tar->data;
 		float vec[4], dir[3], radius;
 		float totmat[4][4] = MAT4_UNITY;




More information about the Bf-blender-cvs mailing list