[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12553] trunk/blender/source/creator/ creator.c: Proper code for bugfix revision 12365 ( which was uncommitted today).

Ton Roosendaal ton at blender.org
Sun Nov 11 17:13:27 CET 2007


Revision: 12553
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=12553
Author:   ton
Date:     2007-11-11 17:13:27 +0100 (Sun, 11 Nov 2007)

Log Message:
-----------
Proper code for bugfix revision 12365 (which was uncommitted today).

Old log Message:
-----------
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.

Revision Links:
--------------
    http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=12365

Modified Paths:
--------------
    trunk/blender/source/creator/creator.c

Modified: trunk/blender/source/creator/creator.c
===================================================================
--- trunk/blender/source/creator/creator.c	2007-11-11 15:18:53 UTC (rev 12552)
+++ trunk/blender/source/creator/creator.c	2007-11-11 16:13:27 UTC (rev 12553)
@@ -688,6 +688,10 @@
 		else {
 			BKE_read_file(argv[a], NULL);
 			sound_initialize_sounds();
+			
+			/* happens for the UI on file reading too */
+			BKE_reset_undo();
+			BKE_write_undo("original");	/* save current state */
 		}
 	}
 





More information about the Bf-blender-cvs mailing list