Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/transform/transform.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index f1f49a6d88b..43e0af53ec6 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -3178,15 +3178,9 @@ int Rotation(TransInfo *t, short UNUSED(mval[2]))
outputNumInput(&(t->num), c);
sprintf(str, "Rot: %s %s %s", &c[0], t->con.text, t->proptext);
-
- /* Clamp between -180 and 180 */
- while (final >= 180.0f)
- final -= 360.0f;
-
- while (final <= -180.0f)
- final += 360.0f;
- final = DEG2RADF(final);
+ /* Clamp between -180 and 180 */
+ final= angle_wrap_rad(DEG2RADF(final));
}
else {
sprintf(str, "Rot: %.2f%s %s", RAD2DEGF(final), t->con.text, t->proptext);