[Bf-blender-cvs] [8b907a2] blender-v2.75-release: Fix T45281: IOR Value Slider with "Ctrl" modifier does not increment as intended.

Bastien Montagne noreply at git.blender.org
Tue Jul 7 15:17:28 CEST 2015


Commit: 8b907a2b27573bd94933bf41f381eee50a611903
Author: Bastien Montagne
Date:   Fri Jul 3 18:56:59 2015 +0200
Branches: blender-v2.75-release
https://developer.blender.org/rB8b907a2b27573bd94933bf41f381eee50a611903

Fix T45281: IOR Value Slider with "Ctrl" modifier does not increment as intended.

Looks like a typo in rB1b8069bd?

===================================================================

M	source/blender/editors/interface/interface_handlers.c

===================================================================

diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c
index 2ddb9a0..24d3e8c 100644
--- a/source/blender/editors/interface/interface_handlers.c
+++ b/source/blender/editors/interface/interface_handlers.c
@@ -3934,7 +3934,7 @@ static float ui_numedit_apply_snapf(
 		/* workaround, too high snapping values */
 		/* snapping by 10's for float buttons is quite annoying (location, scale...),
 		 * but allow for rotations */
-		if ((softrange > 2100.0f)) {
+		if (softrange >= 21.0f) {
 			int unit_type = UI_but_unit_type_get(but);
 			if (!ELEM(unit_type, PROP_UNIT_ROTATION)) {
 				softrange = 20.0f;




More information about the Bf-blender-cvs mailing list