forked from qt-creator/qt-creator
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 <mahmoud.badri@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user