From 5343490eb44590e11cc9e8b4bc42efbc2bb051a6 Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Thu, 6 Aug 2020 16:32:35 +0300 Subject: [PATCH] QmlDesigner: Fix pivot point scaling Now pivot point in 3D edit view will always appear same size regardless of the viewing angle. Change-Id: Iddd4fc8800eecbc63f16fc130b7f93dcba4d5d65 Fixes: QDS-2570 Reviewed-by: Mahmoud Badri Reviewed-by: Thomas Hartmann --- share/qtcreator/qml/qmlpuppet/mockfiles/EditView3D.qml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/share/qtcreator/qml/qmlpuppet/mockfiles/EditView3D.qml b/share/qtcreator/qml/qmlpuppet/mockfiles/EditView3D.qml index 280ab68c82d..bb09c48d4a2 100644 --- a/share/qtcreator/qml/qmlpuppet/mockfiles/EditView3D.qml +++ b/share/qtcreator/qml/qmlpuppet/mockfiles/EditView3D.qml @@ -487,6 +487,12 @@ Item { position: moveGizmo.scenePosition } + AutoScaleHelper { + id: pivotAutoScale + view3D: overlayView + position: pivotLine.startPos + } + Line3D { id: pivotLine visible: viewRoot.selectedNode @@ -513,7 +519,7 @@ Item { Model { id: pivotCap source: "#Sphere" - scale: autoScale.getScale(Qt.vector3d(0.03, 0.03, 0.03)) + scale: pivotAutoScale.getScale(Qt.vector3d(0.03, 0.03, 0.03)) position: pivotLine.startPos materials: [ DefaultMaterial {