diff options
author | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2016-06-20 09:21:16 +0300 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2016-06-20 06:29:20 +0000 |
commit | ae766a528860bb759757db41cc31dc85a84f6e19 (patch) | |
tree | c769b7722414fb3566d3c3ab66e39d8647b1cd74 | |
parent | 2a6a6ed21bb6541936b491a2778e9f0b065f77e4 (diff) |
Hide center line when drag handles are disabled
Change-Id: I09a2efc4fc0f4f2f6d58a290ee7c982be468ca92
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
-rw-r--r-- | editorlib/src/editorscene.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editorlib/src/editorscene.cpp b/editorlib/src/editorscene.cpp index bc5b39a..8615abf 100644 --- a/editorlib/src/editorscene.cpp +++ b/editorlib/src/editorscene.cpp @@ -2266,7 +2266,6 @@ void EditorScene::handleSelectionTransformChange() centerPoint = QPoint(itemCenterHandlePos.x(), itemCenterHandlePos.y()); showCenterHandle = translatePoint != centerPoint; } - m_meshCenterIndicatorLine->setEnabled(showCenterHandle); if (showCenterHandle) { QQuaternion rot = QQuaternion::rotationTo(QVector3D(0.0f, 0.0f, 1.0f), meshCenter.normalized()); @@ -2277,6 +2276,8 @@ void EditorScene::handleSelectionTransformChange() m_meshCenterIndicatorLineTransform->setScale(meshCenter.length()); } } + m_meshCenterIndicatorLine->setEnabled(showCenterHandle && m_dragHandlesTransform->isEnabled()); + // Signal UI to reposition drag handles emit beginDragHandlesRepositioning(); emit repositionDragHandle(DragTranslate, translatePoint, |