diff options
author | Joseph Eagar <joeedh@gmail.com> | 2008-02-23 05:12:50 +0300 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2008-02-23 05:12:50 +0300 |
commit | f312611a924304bf7048abbb9f5a4dc7895a9c7f (patch) | |
tree | 8265fbc31fd74c146c3f249fcdc6ba2f01e07752 /source/blender/blenkernel | |
parent | 0e233b3213a21449399d91b9ee841c235fbba4d7 (diff) |
=ID Property Bugfix=
There was an extraneous line causing ID property groups
to have the wrong length, causing crashes in code that
relied on it.
This commit both fixes that and adds a version check to
fix group lengths for older .blends. The subversion
was incremented to 15 for this change.
Diffstat (limited to 'source/blender/blenkernel')
-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 85144a535d3..8ac0ff77832 100644 --- a/source/blender/blenkernel/intern/idprop.c +++ b/source/blender/blenkernel/intern/idprop.c @@ -228,10 +228,11 @@ void IDP_ReplaceInGroup(IDProperty *group, IDProperty *prop) if (BSTR_EQ(loop->name, prop->name)) { if (loop->next) BLI_insertlinkbefore(&group->data.group, loop->next, prop); else BLI_addtail(&group->data.group, prop); + BLI_remlink(&group->data.group, loop); IDP_FreeProperty(loop); MEM_freeN(loop); - group->len++; + return; } } |