diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-02-11 21:26:19 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-02-11 21:26:19 +0300 |
commit | 79c0360e885ae5c167c075600b66431402e340c9 (patch) | |
tree | 704b767d9980114dec6493c6b411455b4a61ddb6 /source/blender/blenkernel/intern/idprop.c | |
parent | e706fc522b3f825a79417401ca1471947a03a8ef (diff) |
IDP_CopyGroup wasn't copying the length, thanks Caedes for finding this one
Diffstat (limited to 'source/blender/blenkernel/intern/idprop.c')
-rw-r--r-- | source/blender/blenkernel/intern/idprop.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/idprop.c b/source/blender/blenkernel/intern/idprop.c index bf2a3aae11a..85144a535d3 100644 --- a/source/blender/blenkernel/intern/idprop.c +++ b/source/blender/blenkernel/intern/idprop.c @@ -212,7 +212,8 @@ void IDP_UnlinkID(IDProperty *prop) IDProperty *IDP_CopyGroup(IDProperty *prop) { IDProperty *newp = idp_generic_copy(prop), *link; - + newp->len = prop->len; + for (link=prop->data.group.first; link; link=link->next) { BLI_addtail(&newp->data.group, IDP_CopyProperty(link)); } |