Revision: 23133
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=23133
Author:   dingto
Date:     2009-09-11 23:02:31 +0200 (Fri, 11 Sep 2009)

Log Message:
-----------
2.5
Revert some changes from commit 23090. Make sure you update SVN before you 
commit!! 

Modified Paths:
--------------
    
branches/blender2.5/blender/source/blender/windowmanager/intern/wm_operators.c

Modified: 
branches/blender2.5/blender/source/blender/windowmanager/intern/wm_operators.c
===================================================================
--- 
branches/blender2.5/blender/source/blender/windowmanager/intern/wm_operators.c  
    2009-09-11 20:06:09 UTC (rev 23132)
+++ 
branches/blender2.5/blender/source/blender/windowmanager/intern/wm_operators.c  
    2009-09-11 21:02:31 UTC (rev 23133)
@@ -803,7 +803,7 @@
                        WM_read_file(C, G.sce, op->reports);
                }
                else {
-                       struct RecentFile *recent = 
BLI_findlink(&(G.recent_files), event-2);
+                       struct RecentFile *recent = 
BLI_findlink(&(G.recent_files), event-1);
                        if(recent) {
                                WM_event_add_notifier(C, NC_WINDOW, NULL);
                                WM_read_file(C, recent->filename, op->reports);
@@ -831,11 +831,11 @@
        EnumPropertyItem tmp = {0, "", 0, "", ""};
        EnumPropertyItem *item= NULL;
        struct RecentFile *recent;
-       int totitem= 0, i, ofs= 0;
+       int totitem= 0, i;
 
        /* dynamically construct enum */
        for(recent = G.recent_files.first, i=0; (i<U.recent_files) && (recent); 
recent = recent->next, i++) {
-               tmp.value= i+ofs+1;
+               tmp.value= i+1;
                tmp.identifier= recent->filename;
                tmp.name= BLI_short_filename(recent->filename);
                RNA_enum_item_add(&item, &totitem, &tmp);


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

Reply via email to