2.5 - Bones can now have custom properties (as ID-Props)

Still need to find a way to enable RNA access for these though, since RNA access to ID-Props stored in data seems to be broken...
This commit is contained in:
2009-05-18 02:25:33 +00:00
parent e67e7049f9
commit d128e16561
3 changed files with 19 additions and 1 deletions

View File

@@ -956,6 +956,11 @@ static void write_pose(WriteData *wd, bPose *pose)
/* Write channels */
for (chan=pose->chanbase.first; chan; chan=chan->next) {
/* Write ID Properties -- and copy this comment EXACTLY for easy finding
of library blocks that implement this.*/
if (chan->prop)
IDP_WriteProperty(chan->prop, wd);
write_constraints(wd, &chan->constraints);
/* prevent crashes with autosave, when a bone duplicated in editmode has not yet been assigned to its posechannel */