Revision: 24043
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24043
Author:   aligorith
Date:     2009-10-22 01:05:54 +0200 (Thu, 22 Oct 2009)

Log Message:
-----------
Bugfix #19707: Save Over (Ctrl+W/ Ctrl+S) anoyiance

Using standard 'save' now pops up a filebrowser when the file hasn't been saved 
before instead of just assuming that the file should be called "untitled.blend" 
and dumped in the last used directory.

Modified Paths:
--------------
    trunk/blender/source/blender/windowmanager/intern/wm_operators.c

Modified: trunk/blender/source/blender/windowmanager/intern/wm_operators.c
===================================================================
--- trunk/blender/source/blender/windowmanager/intern/wm_operators.c    
2009-10-21 20:58:10 UTC (rev 24042)
+++ trunk/blender/source/blender/windowmanager/intern/wm_operators.c    
2009-10-21 23:05:54 UTC (rev 24043)
@@ -1321,8 +1321,12 @@
        BLI_strncpy(name, G.sce, FILE_MAX);
        untitled(name);
        RNA_string_set(op->ptr, "path", name);
-       uiPupMenuSaveOver(C, op, name);
-
+       
+       if (G.save_over)
+               uiPupMenuSaveOver(C, op, name);
+       else
+               WM_event_add_fileselect(C, op);
+       
        return OPERATOR_RUNNING_MODAL;
 }
 


_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to