summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Studio/Render/StudioRenderer.cpp
diff options
context:
space:
mode:
authorJere Tuliniemi <jere.tuliniemi@qt.io>2018-10-30 15:23:36 +0200
committerJere Tuliniemi <jere.tuliniemi@qt.io>2018-10-31 12:28:18 +0000
commit55b8f4deee8d4b8fd29acb96126f424dffdf71fd (patch)
tree6efdc503447e9d40f8c6110bebf841affdf19826 /src/Authoring/Studio/Render/StudioRenderer.cpp
parent6ff3bcc63bdc9e19762994c3639b4e1e8cf2d18a (diff)
Ignore widgets when dragging matdefs to the scene
Task-number: QT3DS-2108 Change-Id: I32eebcb26cffe01a479b61a8ce683e79278b9644 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/Authoring/Studio/Render/StudioRenderer.cpp')
-rw-r--r--src/Authoring/Studio/Render/StudioRenderer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Authoring/Studio/Render/StudioRenderer.cpp b/src/Authoring/Studio/Render/StudioRenderer.cpp
index 18f3c9a5..a3850618 100644
--- a/src/Authoring/Studio/Render/StudioRenderer.cpp
+++ b/src/Authoring/Studio/Render/StudioRenderer.cpp
@@ -729,7 +729,7 @@ struct SRendererImpl : public IStudioRenderer,
return Qt3DSDMInstanceHandle();
const QPoint point(pt * m_pixelRatio);
- const auto pick = m_Translation->Pick(point, TranslationSelectMode::Single);
+ const auto pick = m_Translation->Pick(point, TranslationSelectMode::Single, true);
if (pick.getType() == StudioPickValueTypes::Instance)
return pick.getData<Qt3DSDMInstanceHandle>();
return Qt3DSDMInstanceHandle();