bug fix, when opening blender with a file (by double clicking or from the command line) - the initial undo state would be set to the default scene.
So holding Ctrl+Z would go back to the default .B.blend rather then the file that the user opened.
This commit is contained in:
@@ -702,9 +702,10 @@ int main(int argc, char **argv)
|
||||
sce= add_scene("1");
|
||||
set_scene(sce);
|
||||
}
|
||||
|
||||
|
||||
BKE_write_undo("original"); /* save current state */
|
||||
screenmain();
|
||||
|
||||
|
||||
return 0;
|
||||
} /* end of int main(argc,argv) */
|
||||
|
||||
|
Reference in New Issue
Block a user