summaryrefslogtreecommitdiffstats
path: root/editorlib
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@qt.io>2016-09-09 10:03:05 +0300
committerMiikka Heikkinen <miikka.heikkinen@qt.io>2016-09-14 11:13:58 +0000
commit8f301b624cae6376369a0871a0034f3d8f052cfa (patch)
treecab1a20a29a0e4115dfeb0cb68e0f66ac726d3fc /editorlib
parent78d14f1de0d7c4d025cc1d5f547f5fdbc300defd (diff)
Fix drag-translate offset from helper plane for off-center meshes
Change-Id: I56e59cd5f5c41c8e19d94e8b90d33d63d5e217d7 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'editorlib')
-rw-r--r--editorlib/src/editorscene.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editorlib/src/editorscene.cpp b/editorlib/src/editorscene.cpp
index 689306f..243e241 100644
--- a/editorlib/src/editorscene.cpp
+++ b/editorlib/src/editorscene.cpp
@@ -540,7 +540,7 @@ void EditorScene::dragHandlePress(EditorScene::DragMode dragMode, const QPoint &
else
m_dragInitialWorldTranslationValue = cameraEntity->position();
} else {
- if (handleIndex) {
+ if (handleIndex == 0) {
m_dragInitialWorldTranslationValue = m_dragHandlesTransform->translation();
} else {
m_dragInitialWorldTranslationValue = m_dragHandlesTransform->matrix()