diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-04-29 19:31:53 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-04-29 19:31:53 +0400 |
commit | 610c4befd4ea1d2798c4196785570ddce76f324a (patch) | |
tree | 0c59677e2b5fca9a0201adc56fbefb100a24c5a4 /source/blender/blenkernel/intern/armature.c | |
parent | 6662440867f0ca909339bbb95295c8db95ba0005 (diff) |
option to copy constraints without making their ID references direct links.
needed because proxies are causing libs to be linked directly when they should be kept indirect (likely slowing load times though I didnt time this)
Diffstat (limited to 'source/blender/blenkernel/intern/armature.c')
-rw-r--r-- | source/blender/blenkernel/intern/armature.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/armature.c b/source/blender/blenkernel/intern/armature.c index a2dbaa9d666..4f9b9435a80 100644 --- a/source/blender/blenkernel/intern/armature.c +++ b/source/blender/blenkernel/intern/armature.c @@ -1568,9 +1568,11 @@ static void pose_proxy_synchronize(Object *ob, Object *from, int layer_protected * 1. extract constraints not from proxy (CONSTRAINT_PROXY_LOCAL) from pchan's constraints * 2. copy proxy-pchan's constraints on-to new * 3. add extracted local constraints back on top + * + * note for copy_constraints: when copying constraints, disable 'do_extern' otherwise we get the libs direct linked in this blend. */ extract_proxylocal_constraints(&proxylocal_constraints, &pchan->constraints); - copy_constraints(&pchanw.constraints, &pchanp->constraints); + copy_constraints(&pchanw.constraints, &pchanp->constraints, FALSE); addlisttolist(&pchanw.constraints, &proxylocal_constraints); /* constraints - set target ob pointer to own object */ |