Bugfix [#34560] Wrong angle for text in Horizontal mode of Properties space

Rotation angle for text was still in degrees not radians
This commit is contained in:
Joshua Leung
2013-03-08 03:42:16 +00:00
parent b9554c86dc
commit ff336aca02

View 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);