summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomi Korpipaa <tomi.korpipaa@qt.io>2018-09-11 11:35:52 +0300
committerTomi Korpipää <tomi.korpipaa@qt.io>2018-09-11 08:48:57 +0000
commitfbb9ce1194f30e76f1ab0cb299774d7de0a6aa47 (patch)
tree370db1638a35f9387b16eef5beaaf569132549f8
parentcf9eba9675f29bb099ad27ec79c6c2c3e2fd5459 (diff)
Match rotation widget angle to actual angle
Task-number: QT3DS-2264 Change-Id: I3a9514b8ddb8339a91443463e9bc4541991412cf Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
-rw-r--r--src/Authoring/Studio/Render/StudioRotationWidget.cpp2
1 files changed, 1 insertions, 1 deletions
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<StudioWidgetTypes::Rotation>
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;