Revision: 30536
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30536
Author:   aligorith
Date:     2010-07-20 14:37:42 +0200 (Tue, 20 Jul 2010)

Log Message:
-----------
Bugfix #22872: invert zoom direction doesn't work

The setting for this (IMO it should really be on by default, for reasons I've 
outlined recently) was not exposed at all. 

The setting that was shown was a new(?) option in 2.5 which dealt with Ctrl-MMB 
drag zoom.

Modified Paths:
--------------
    trunk/blender/release/scripts/ui/space_userpref.py
    trunk/blender/source/blender/makesrna/intern/rna_userdef.c

Modified: trunk/blender/release/scripts/ui/space_userpref.py
===================================================================
--- trunk/blender/release/scripts/ui/space_userpref.py  2010-07-20 12:35:56 UTC 
(rev 30535)
+++ trunk/blender/release/scripts/ui/space_userpref.py  2010-07-20 12:37:42 UTC 
(rev 30536)
@@ -352,7 +352,7 @@
         col.prop(edit, "duplicate_lamp", text="Lamp")
         col.prop(edit, "duplicate_material", text="Material")
         col.prop(edit, "duplicate_texture", text="Texture")
-        col.prop(edit, "duplicate_fcurve", text="F-Curve")
+        #col.prop(edit, "duplicate_fcurve", text="F-Curve")
         col.prop(edit, "duplicate_action", text="Action")
         col.prop(edit, "duplicate_particle", text="Particle")
 
@@ -778,8 +778,9 @@
 
         #col.separator()
 
-        #sub = col.column()
-        #sub.label(text="Mouse Wheel:")
+        sub = col.column()
+        sub.label(text="Mouse Wheel:")
+        sub.prop(inputs, "wheel_invert_zoom", text="Invert Wheel Zoom 
Direction")
         #sub.prop(view, "wheel_scroll_lines", text="Scroll Lines")
 
         col.separator()

Modified: trunk/blender/source/blender/makesrna/intern/rna_userdef.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_userdef.c  2010-07-20 
12:35:56 UTC (rev 30535)
+++ trunk/blender/source/blender/makesrna/intern/rna_userdef.c  2010-07-20 
12:37:42 UTC (rev 30536)
@@ -1989,20 +1989,6 @@
        RNA_def_property_ui_text(prop, "Mini Axis Brightness", "The brightness 
of the icon");
        RNA_def_property_update(prop, 0, "rna_userdef_update");
 
-       /* middle mouse button */
-       prop= RNA_def_property(srna, "use_middle_mouse_paste", PROP_BOOLEAN, 
PROP_NONE);
-       RNA_def_property_boolean_sdna(prop, NULL, "uiflag", USER_MMB_PASTE);
-       RNA_def_property_ui_text(prop, "Middle Mouse Paste", "In text window, 
paste with middle mouse button instead of panning");
-       
-       prop= RNA_def_property(srna, "wheel_invert_zoom", PROP_BOOLEAN, 
PROP_NONE);
-       RNA_def_property_boolean_sdna(prop, NULL, "uiflag", USER_WHEELZOOMDIR);
-       RNA_def_property_ui_text(prop, "Wheel Invert Zoom", "Swap the Mouse 
Wheel zoom direction");
-
-       prop= RNA_def_property(srna, "wheel_scroll_lines", PROP_INT, PROP_NONE);
-       RNA_def_property_int_sdna(prop, NULL, "wheellinescroll");
-       RNA_def_property_range(prop, 0, 32);
-       RNA_def_property_ui_text(prop, "Wheel Scroll Lines", "The number of 
lines scrolled at a time with the mouse wheel");
-
        prop= RNA_def_property(srna, "smooth_view", PROP_INT, PROP_NONE);
        RNA_def_property_int_sdna(prop, NULL, "smooth_viewtx");
        RNA_def_property_range(prop, 0, 1000);
@@ -2672,6 +2658,20 @@
        RNA_def_property_boolean_sdna(prop, NULL, "flag", USER_NONUMPAD);
        RNA_def_property_ui_text(prop, "Emulate Numpad", "Causes the 1 to 0 
keys to act as the numpad (useful for laptops)");
        
+       /* middle mouse button */
+       prop= RNA_def_property(srna, "use_middle_mouse_paste", PROP_BOOLEAN, 
PROP_NONE);
+       RNA_def_property_boolean_sdna(prop, NULL, "uiflag", USER_MMB_PASTE);
+       RNA_def_property_ui_text(prop, "Middle Mouse Paste", "In text window, 
paste with middle mouse button instead of panning");
+       
+       prop= RNA_def_property(srna, "wheel_invert_zoom", PROP_BOOLEAN, 
PROP_NONE);
+       RNA_def_property_boolean_sdna(prop, NULL, "uiflag", USER_WHEELZOOMDIR);
+       RNA_def_property_ui_text(prop, "Wheel Invert Zoom", "Swap the Mouse 
Wheel zoom direction");
+
+       prop= RNA_def_property(srna, "wheel_scroll_lines", PROP_INT, PROP_NONE);
+       RNA_def_property_int_sdna(prop, NULL, "wheellinescroll");
+       RNA_def_property_range(prop, 0, 32);
+       RNA_def_property_ui_text(prop, "Wheel Scroll Lines", "The number of 
lines scrolled at a time with the mouse wheel");
+       
        /* U.keymaps - custom keymaps that have been edited from default 
configs */
        prop= RNA_def_property(srna, "edited_keymaps", PROP_COLLECTION, 
PROP_NONE);
        RNA_def_property_collection_sdna(prop, NULL, "keymaps", NULL);


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to