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.
This commit is contained in:
parent
99248fa90f
commit
deed85035f
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user