bugfix [#25208] randomize transform doesn't work on objects with keyframes
[blender-staging.git] / source / blender / blenkernel / intern / blender.c
index 6ceb75f2f834ebcdf9d2b90cd5e49523a4f15bb2..b782d3a92a9c9754bbb216efb7cc2f4eb1cffdbd 100644 (file)
@@ -467,8 +467,10 @@ static int read_undosave(bContext *C, UndoElem *uel)
        strcpy(G.main->name, mainstr); /* restore */
        G.fileflags= fileflags;
 
        strcpy(G.main->name, mainstr); /* restore */
        G.fileflags= fileflags;
 
-       if(success)
-               DAG_on_load_update(G.main);
+       if(success) {
+               /* important not to update time here, else non keyed tranforms are lost */
+               DAG_on_load_update(G.main, FALSE);
+       }
 
        return success;
 }
 
        return success;
 }