Fix cache constraint not reference counting cache files.
authorKévin Dietrich <kevin.dietrich@mailoo.org>
Fri, 26 Aug 2016 12:21:59 +0000 (14:21 +0200)
committerKévin Dietrich <kevin.dietrich@mailoo.org>
Fri, 26 Aug 2016 12:28:50 +0000 (14:28 +0200)
source/blender/blenkernel/intern/constraint.c

index 116c75721af094450f2d080145a5a0d5cb168e04..c4afa58b7d371cf704ad689ebe33089c2ef529fa 100644 (file)
@@ -4344,7 +4344,7 @@ static bConstraintTypeInfo CTI_OBJECTSOLVER = {
 static void transformcache_id_looper(bConstraint *con, ConstraintIDFunc func, void *userdata)
 {
        bTransformCacheConstraint *data = con->data;
-       func(con, (ID **)&data->cache_file, false, userdata);
+       func(con, (ID **)&data->cache_file, true, userdata);
 }
 
 static void transformcache_evaluate(bConstraint *con, bConstraintOb *cob, ListBase *targets)