diff options
Diffstat (limited to 'source/blender/blenloader/intern')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 2 | ||||
-rw-r--r-- | source/blender/blenloader/intern/writefile.c | 7 |
2 files changed, 2 insertions, 7 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 11a9a6efff5..5b75912aa2a 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -1780,6 +1780,8 @@ static void direct_link_fcurves(FileData *fd, ListBase *list) if (fcu->driver) { ChannelDriver *driver= fcu->driver; DriverVar *dvar; + + driver->expr_comp= NULL; /* relink variables, targets and their paths */ link_list(fd, &driver->variables); diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c index 7064b8c380f..f7bd5a0af6b 100644 --- a/source/blender/blenloader/intern/writefile.c +++ b/source/blender/blenloader/intern/writefile.c @@ -935,15 +935,8 @@ static void write_fcurves(WriteData *wd, ListBase *fcurves) ChannelDriver *driver= fcu->driver; DriverVar *dvar; - /* don't save compiled python bytecode */ - void *expr_comp= driver->expr_comp; - driver->expr_comp= NULL; - writestruct(wd, DATA, "ChannelDriver", 1, driver); - driver->expr_comp= expr_comp; /* restore */ - - /* variables */ for (dvar= driver->variables.first; dvar; dvar= dvar->next) { writestruct(wd, DATA, "DriverVar", 1, dvar); |