From deed85035fc153287f73de46fdbac0c537a93a27 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Wed, 18 Feb 2009 17:26:10 +0000 Subject: [PATCH] Allow rotation angle properties to be negative Bug 1167 - clutter_effect_rotate improperly clamps negative angles The rotation angle properties had a minimum value of 0.0 but the rotation works fine with a negative value so the limitation is unnecessary. This makes rotation using the ClutterAnimation API more flexible because it was previously not possible to rotate counter-clockwise from the 0.0 position. --- clutter/clutter-actor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c index 90b72ae2f..a95b92763 100644 --- a/clutter/clutter-actor.c +++ b/clutter/clutter-actor.c @@ -2617,7 +2617,7 @@ clutter_actor_class_init (ClutterActorClass *klass) g_param_spec_double ("rotation-angle-x", "Rotation Angle X", "The rotation angle on the X axis", - 0.0, + -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, CLUTTER_PARAM_READWRITE)); @@ -2634,7 +2634,7 @@ clutter_actor_class_init (ClutterActorClass *klass) g_param_spec_double ("rotation-angle-y", "Rotation Angle Y", "The rotation angle on the Y axis", - 0.0, + -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, CLUTTER_PARAM_READWRITE)); @@ -2651,7 +2651,7 @@ clutter_actor_class_init (ClutterActorClass *klass) g_param_spec_double ("rotation-angle-z", "Rotation Angle Z", "The rotation angle on the Z axis", - 0.0, + -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, CLUTTER_PARAM_READWRITE));