diff options
Diffstat (limited to 'editorlib/src/editorscene.cpp')
-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, |