Sculpt Branch:
[blender-staging.git] / source / blender / blenloader / intern / writefile.c
index c432dfd746f79d616120621d0fcac4dc299e2179..bc0db6d4cd1cd1f44e007400ec32dee09b24352a 100644 (file)
@@ -934,8 +934,14 @@ static void write_fcurves(WriteData *wd, ListBase *fcurves)
                        ChannelDriver *driver= fcu->driver;
                        DriverTarget *dtar;
                        
+                       /* 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 */
+
                        /* targets */
                        for (dtar= driver->targets.first; dtar; dtar= dtar->next) {
                                writestruct(wd, DATA, "DriverTarget", 1, dtar);