Added a first version of the Sound F-Curve Modifier, not really usable yet, but you...
[blender.git] / source / blender / blenloader / intern / readfile.c
index 5dc7cdad8ed1ae9d6b6187e733f65bde63b72db0..b78dd008fe1c57d30561cfe5ad198371642d4cb8 100644 (file)
@@ -1694,6 +1694,12 @@ static void lib_link_fmodifiers(FileData *fd, ID *id, ListBase *list)
                                data->script = newlibadr(fd, id->lib, data->script);
                        }
                                break;
+                       case FMODIFIER_TYPE_SOUND:
+                       {
+                               FMod_Sound *data= (FMod_Sound *)fcm->data;
+                               data->sound = newlibadr(fd, id->lib, data->sound);
+                       }
+                               break;
                }
        }
 }
@@ -10440,6 +10446,13 @@ static void expand_fmodifiers(FileData *fd, Main *mainvar, ListBase *list)
                                expand_doit(fd, mainvar, data->script);
                        }
                                break;
+                       case FMODIFIER_TYPE_SOUND:
+                       {
+                               FMod_Sound *data= (FMod_Sound *)fcm->data;
+
+                               expand_doit(fd, mainvar, data->sound);
+                       }
+                               break;
                }
        }
 }