Merge of itasc branch. Project files, scons and cmake should be working. Makefile...
[blender.git] / source / blender / blenloader / intern / writefile.c
index 37d0ee5..fda35d2 100644 (file)
@@ -712,6 +712,9 @@ static void write_sensors(WriteData *wd, ListBase *lb)
                case SENS_PROPERTY:
                        writestruct(wd, DATA, "bPropertySensor", 1, sens->data);
                        break;
+               case SENS_ARMATURE:
+                       writestruct(wd, DATA, "bArmatureSensor", 1, sens->data);
+                       break;
                case SENS_ACTUATOR:
                        writestruct(wd, DATA, "bActuatorSensor", 1, sens->data);
                        break;
@@ -830,6 +833,9 @@ static void write_actuators(WriteData *wd, ListBase *lb)
                case ACT_STATE:
                        writestruct(wd, DATA, "bStateActuator", 1, act->data);
                        break;
+               case ACT_ARMATURE:
+                       writestruct(wd, DATA, "bArmatureActuator", 1, act->data);
+                       break;
                default:
                        ; /* error: don't know how to write this file */
                }
@@ -1093,8 +1099,16 @@ static void write_pose(WriteData *wd, bPose *pose)
        for (grp=pose->agroups.first; grp; grp=grp->next) 
                writestruct(wd, DATA, "bActionGroup", 1, grp);
 
+       /* write IK param */
+       if (pose->ikparam) {
+               const char *structname = get_ikparam_name(pose);
+               if (structname)
+                       writestruct(wd, DATA, structname, 1, pose->ikparam);
+       }
+
        /* Write this pose */
        writestruct(wd, DATA, "bPose", 1, pose);
+
 }
 
 static void write_defgroups(WriteData *wd, ListBase *defbase)