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:
authorJoshua Leung <aligorith@gmail.com>2010-02-09 03:02:22 +0300
committerJoshua Leung <aligorith@gmail.com>2010-02-09 03:02:22 +0300
commitd359edbc8404d6170534ce56d25c91865f5cec05 (patch)
treebb01f2fd030b04182a8ddb4160ee7486ba7b1196 /source/blender/blenkernel
parentbc31b2c0f44ababb3120223b968dee872cec24f6 (diff)
Bugfix: Inserting keyframes from the buttons now ensures that the Graph Editor is updated in the process...
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/constraint.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c
index 4f4c1959f34..f0a2120f0a7 100644
--- a/source/blender/blenkernel/intern/constraint.c
+++ b/source/blender/blenkernel/intern/constraint.c
@@ -4041,9 +4041,10 @@ void id_loop_constraints (ListBase *conlist, ConstraintIDFunc func, void *userda
/* ......... */
+/* helper for copy_constraints(), to be used for making sure that ID's are valid */
static void con_extern_cb(bConstraint *con, ID **idpoin, void *userdata)
{
- if(idpoin && (*idpoin)->lib)
+ if (idpoin && (*idpoin)->lib)
id_lib_extern(*idpoin);
}
@@ -4066,13 +4067,13 @@ void copy_constraints (ListBase *dst, const ListBase *src)
/* only do specific constraints if required */
if (cti) {
- if (cti->copy_data) {
+ /* perform custom copying operations if needed */
+ if (cti->copy_data)
cti->copy_data(con, srccon);
- }
-
- if(cti->id_looper) {
+
+ /* go over used ID-links for this constraint to ensure that they are valid for proxies */
+ if (cti->id_looper)
cti->id_looper(con, con_extern_cb, NULL);
- }
}
}
}