diff options
author | Tomi Korpipää <tomi.korpipaa@qt.io> | 2016-06-21 13:48:57 +0300 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@qt.io> | 2016-06-21 11:28:51 +0000 |
commit | eac979b8a16d4128653a22cdfb47f6c35e56da30 (patch) | |
tree | 0dcaf3bc24d10ba3d71e84e6e12698e4906e8f70 /editorlib/src/editorscene.cpp | |
parent | 65d9db329b71a6e1ad5f000b32cd69e5256a3af8 (diff) |
Fixed spotlight and directionallight mesh rotation after load
Change-Id: I25be94346fce967bea2e506d7a26d1c1bfe4aca6
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Titta Heikkala <titta.heikkala@qt.io>
Diffstat (limited to 'editorlib/src/editorscene.cpp')
-rw-r--r-- | editorlib/src/editorscene.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editorlib/src/editorscene.cpp b/editorlib/src/editorscene.cpp index 6bf2a48..db42f72 100644 --- a/editorlib/src/editorscene.cpp +++ b/editorlib/src/editorscene.cpp @@ -2606,6 +2606,8 @@ void EditorScene::handleLightAdded(Qt3DCore::QEntity *lightEntity) visibleTransform->setMatrix(matrix); handleLightTypeChanged(m_sceneItems.value(lightEntity->id())); + + updateLightVisibleTransform(lightEntity); } void EditorScene::handleLightRemoved(Qt3DCore::QEntity *lightEntity) |