[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [52995] trunk/blender/source/blender/ editors/space_view3d/view3d_buttons.c: Fix #33526: Bezier Curve Tilt in transform panel does not work beyond 360 degrees

Sergey Sharybin sergey.vfx at gmail.com
Fri Dec 14 10:29:08 CET 2012


Revision: 52995
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=52995
Author:   nazgul
Date:     2012-12-14 09:29:05 +0000 (Fri, 14 Dec 2012)
Log Message:
-----------
Fix #33526: Bezier Curve Tilt in transform panel does not work beyond 360 degrees

No need to clamp tilt value in transform panel, til beyond 360 degrees works
fine and clamping it in panel lead to some unexpected behavior.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_view3d/view3d_buttons.c

Modified: trunk/blender/source/blender/editors/space_view3d/view3d_buttons.c
===================================================================
--- trunk/blender/source/blender/editors/space_view3d/view3d_buttons.c	2012-12-14 09:19:13 UTC (rev 52994)
+++ trunk/blender/source/blender/editors/space_view3d/view3d_buttons.c	2012-12-14 09:29:05 UTC (rev 52995)
@@ -439,7 +439,7 @@
 			uiDefButR(block, NUM, 0, "Radius", 0, yi -= buth + but_margin, 200, buth,
 			          &data_ptr, "radius", 0, 0.0, 100.0, 1, 3, NULL);
 			uiDefButR(block, NUM, 0, "Tilt", 0, yi -= buth + but_margin, 200, buth,
-			          &data_ptr, "tilt", 0, -M_PI * 2.0, M_PI * 2.0, 1, 3, NULL);
+			          &data_ptr, "tilt", 0, -FLT_MAX, FLT_MAX, 1, 3, NULL);
 		}
 		else if (totcurvedata > 1) {
 			uiDefButF(block, NUM, B_OBJECTPANELMEDIAN, IFACE_("Mean Weight:"),
@@ -450,7 +450,7 @@
 			          &(tfp->ve_median[C_RADIUS]), 0.0, 100.0, 1, 3, TIP_("Radius of curve control points"));
 			but = uiDefButF(block, NUM, B_OBJECTPANELMEDIAN, IFACE_("Mean Tilt:"),
 			                0, yi -= buth + but_margin, 200, buth,
-			                &(tfp->ve_median[C_TILT]), -M_PI * 2.0, M_PI * 2.0, 1, 3,
+			                &(tfp->ve_median[C_TILT]), -FLT_MAX, FLT_MAX, 1, 3,
 			                TIP_("Tilt of curve control points"));
 			uiButSetUnitType(but, PROP_UNIT_ROTATION);
 		}




More information about the Bf-blender-cvs mailing list