ZanQdo Bugfix:
[blender.git] / source / blender / blenloader / intern / writefile.c
index a32d6038f7e7f31ba7fea99e1d64ff15e5b91c71..50968cb2a54a99fd8305d146255a63b118dd0c12 100644 (file)
@@ -468,7 +468,7 @@ static void write_fmodifiers(WriteData *wd, ListBase *fmodifiers)
                                        
                                        /* write envelope data */
                                        if (data->data)
-                                               writedata(wd, DATA, sizeof(FCM_EnvelopeData)*(data->totvert), data->data);
+                                               writestruct(wd, DATA, "FCM_EnvelopeData", data->totvert, data->data);
                                }
                                        break;
                                case FMODIFIER_TYPE_PYTHON: