diff options
author | Joseph Eagar <joeedh@gmail.com> | 2007-07-10 00:42:14 +0400 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2007-07-10 00:42:14 +0400 |
commit | 4f01085709908e5626c735b01d6c2202236f41e6 (patch) | |
tree | 6a6213a149e55e68cc5bd5832f71bc921d884b83 /source/blender/blenkernel/intern/library.c | |
parent | dfa6e0b8d66a6335e07bfdcba2bd1fc96d2a846b (diff) |
=ID Property update=
ID Properties weren't being duplicated (by shift-D or any of the other
duplication functions). So now ID properties are duplicated in the
main copy_libblock function, which (as far as I can check) covers all
ID-contained ID properties.
I also updated the constraint system to copy pyconstraint ID properties
on shift-D.
This would probably be a good thing to add to the stable branch, btw.
Diffstat (limited to 'source/blender/blenkernel/intern/library.c')
-rw-r--r-- | source/blender/blenkernel/intern/library.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/library.c b/source/blender/blenkernel/intern/library.c index 0163cced795..28a6aad7b4d 100644 --- a/source/blender/blenkernel/intern/library.c +++ b/source/blender/blenkernel/intern/library.c @@ -409,7 +409,8 @@ void *copy_libblock(void *rt) id->newid= idn; idn->flag |= LIB_NEW; - + if (id->properties) idn->properties = IDP_CopyProperty(id->properties); + return idn; } |