diff options
author | Joseph Eagar <joeedh@gmail.com> | 2007-05-22 08:41:21 +0400 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2007-05-22 08:41:21 +0400 |
commit | 9ac39d2e99f4417d7514b63a077df2e232879f00 (patch) | |
tree | a5abd9154146f13c19de32053381be087a1c32f3 /source/blender/blenkernel/BKE_idprop.h | |
parent | 6b103057e8111fd9070f09e7751f7b9ad650eb27 (diff) |
=ID Properties=
The code for preserving ID properties was apparently not
working. Fixed that by adding a new function,
IDP_ReplaceInGroup, that automatically handles overriding a
property in a group while preserving the property order.
Its odd though that the previous fix I had wasn't
working :/
Diffstat (limited to 'source/blender/blenkernel/BKE_idprop.h')
-rw-r--r-- | source/blender/blenkernel/BKE_idprop.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_idprop.h b/source/blender/blenkernel/BKE_idprop.h index eed2d7d1ac5..92b624f80ab 100644 --- a/source/blender/blenkernel/BKE_idprop.h +++ b/source/blender/blenkernel/BKE_idprop.h @@ -78,6 +78,11 @@ void IDP_LinkID(struct IDProperty *prop, ID *id); void IDP_UnlinkID(struct IDProperty *prop); /*-------- Group Functions -------*/ + +/*checks if a property with the same name as prop exists, and if so replaces it. + Use this to preserve order!*/ +void IDP_ReplaceInGroup(struct IDProperty *group, struct IDProperty *prop); + /* This function has a sanity check to make sure ID properties with the same name don't get added to the group. |