From d09f2ed322b2b11d16d5c19ac8a5799c1b717b36 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 27 Feb 2014 19:32:45 +1100 Subject: Fix T38864: Crash with curves and follow path --- source/blender/blenkernel/intern/constraint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c index 30e0c311503..415c84a776d 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; -- cgit v1.2.3