From b64f5a3fe5c7ecfd8ae985266098d0dbd1bac97a Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Mon, 21 Oct 2019 09:38:21 +0200 Subject: [PATCH] QmlDesigner: Position point light at camera Since the camera is movable the light should follow the camera. Change-Id: Ia9925f98288ff19a81086e52f3a31fe72b32ee99 Reviewed-by: Miikka Heikkinen --- share/qtcreator/qml/qmlpuppet/mockfiles/EditView3D.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/share/qtcreator/qml/qmlpuppet/mockfiles/EditView3D.qml b/share/qtcreator/qml/qmlpuppet/mockfiles/EditView3D.qml index 519dc83569a..d3b693788a3 100644 --- a/share/qtcreator/qml/qmlpuppet/mockfiles/EditView3D.qml +++ b/share/qtcreator/qml/qmlpuppet/mockfiles/EditView3D.qml @@ -61,8 +61,10 @@ Window { } Light { - id: directionalLight + id: pointLight visible: showEditLight + position: editCamera.position + lightType: Light.Point } Camera { @@ -74,7 +76,7 @@ Window { } Component.onCompleted: { - directionalLight.setParentItem(editView.scene); + pointLight.setParentItem(editView.scene); editCamera.setParentItem(editView.scene); } }