Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-02-27 12:32:45 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-02-27 12:33:23 +0400
commitd09f2ed322b2b11d16d5c19ac8a5799c1b717b36 (patch)
tree1c5ab36bac2eddc6d520376219e5bad39aba2122 /source/blender/blenkernel/intern/constraint.c
parent00acb984360439d5480bd84d5a212a5524984900 (diff)
Fix T38864: Crash with curves and follow path
Diffstat (limited to 'source/blender/blenkernel/intern/constraint.c')
-rw-r--r--source/blender/blenkernel/intern/constraint.c2
1 files changed, 1 insertions, 1 deletions
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;