From fbb9ce1194f30e76f1ab0cb299774d7de0a6aa47 Mon Sep 17 00:00:00 2001 From: Tomi Korpipaa Date: Tue, 11 Sep 2018 11:35:52 +0300 Subject: Match rotation widget angle to actual angle Task-number: QT3DS-2264 Change-Id: I3a9514b8ddb8339a91443463e9bc4541991412cf Reviewed-by: Miikka Heikkinen --- src/Authoring/Studio/Render/StudioRotationWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Authoring/Studio/Render/StudioRotationWidget.cpp b/src/Authoring/Studio/Render/StudioRotationWidget.cpp index 8578595c..547039a0 100644 --- a/src/Authoring/Studio/Render/StudioRotationWidget.cpp +++ b/src/Authoring/Studio/Render/StudioRotationWidget.cpp @@ -375,7 +375,7 @@ struct SRotationWidget : public SStudioWidgetImpl char textBuffer[25] = { 0 }; QT3DSF32 angleDeg(m_RotationWedge->m_Angle); TODEG(angleDeg); - sprintf(textBuffer, " %.1f ", angleDeg); // spaces added for margin + sprintf(textBuffer, " %.1f ", -angleDeg); // spaces added for margin STextRenderInfo theInfo; theInfo.m_Text = inRenderContext.GetStringTable().RegisterStr(textBuffer); theInfo.m_HorizontalAlignment = TextHorizontalAlignment::Center; -- cgit v1.2.3