summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Studio/Render/StudioRotationWidget.cpp
diff options
context:
space:
mode:
authorTomi Korpipaa <tomi.korpipaa@qt.io>2018-03-16 07:58:31 +0200
committerTomi Korpipää <tomi.korpipaa@qt.io>2018-03-19 04:29:01 +0000
commit3f27e8b00fed98850800e99229cc2d8f33e0f29a (patch)
tree648ab51ac86f26b3a6e4d85ad65aa921decfd2f9 /src/Authoring/Studio/Render/StudioRotationWidget.cpp
parent34e775e062bb198ffca4e2e98e21371fb3ac043b (diff)
Allow grabbing rotate tool on both sides
At the same time fixes the possibility that the rotate tool is completely covered by the target object, in which case it would be impossible to rotate by certain axis. Task-number: QT3DS-381 Change-Id: I436d32941abfcb05a301df76735124da6db4ce55 Reviewed-by: Teemu Tamminen <teemu.tamminen@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Antti Määttä <antti.maatta@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/Authoring/Studio/Render/StudioRotationWidget.cpp')
-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 4cf813d9..fca87b80 100644
--- a/src/Authoring/Studio/Render/StudioRotationWidget.cpp
+++ b/src/Authoring/Studio/Render/StudioRotationWidget.cpp
@@ -407,7 +407,7 @@ struct SRotationWidget : public SStudioWidgetImpl<StudioWidgetTypes::Rotation>
inRenderContext.SetDepthWriteEnabled(true);
inRenderContext.Clear(qt3ds::render::NVRenderClearValues::Depth);
- inRenderContext.SetDepthTestEnabled(true);
+ inRenderContext.SetDepthTestEnabled(false);
inRenderContext.SetDepthWriteEnabled(true);
inRenderContext.SetBlendingEnabled(true);
inRenderContext.SetCullingEnabled(false);