Bugfix [#34560] Wrong angle for text in Horizontal mode of Properties space
authorJoshua Leung <aligorith@gmail.com>
Fri, 8 Mar 2013 03:42:16 +0000 (03:42 +0000)
committerJoshua Leung <aligorith@gmail.com>
Fri, 8 Mar 2013 03:42:16 +0000 (03:42 +0000)
Rotation angle for text was still in degrees not radians

source/blender/editors/interface/interface_style.c

index ef24ea9..506e422 100644 (file)
@@ -216,7 +216,7 @@ void uiStyleFontDrawRotated(uiFontStyle *fs, rcti *rect, const char *str)
        /* rotate counter-clockwise for now (assumes left-to-right language)*/
        xofs += height;
        yofs = BLF_width(fs->uifont_id, str) + 5;
-       angle = 90.0f;
+       angle = M_PI / 2.0f;
 
        /* translate rect to vertical */
        txtrect.xmin = rect->xmin - BLI_rcti_size_y(rect);