summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomi Korpipaa <tomi.korpipaa@qt.io>2018-09-19 06:49:33 +0300
committerTomi Korpipää <tomi.korpipaa@qt.io>2018-09-19 07:55:31 +0000
commitab308dedc6a79b794d2110851815f061a0828b29 (patch)
tree3656a6352a3989431fb9eef0a3ca0a1adc681ead
parent68f7bea4d815a838864028d0e7b9be6294f88091 (diff)
Fix updating project palette file references
File references of some texture assets, like the environment maps of custom materials, did not work. Task-number: QT3DS-2351 Change-Id: I545fc5dfca3bf4cb28ab1b987d0b1d86bd55bcbc Reviewed-by: Janne Kangas <janne.kangas@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
-rw-r--r--src/Authoring/Studio/Palettes/Project/ProjectFileSystemModel.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Authoring/Studio/Palettes/Project/ProjectFileSystemModel.cpp b/src/Authoring/Studio/Palettes/Project/ProjectFileSystemModel.cpp
index 4df59c55..643b6690 100644
--- a/src/Authoring/Studio/Palettes/Project/ProjectFileSystemModel.cpp
+++ b/src/Authoring/Studio/Palettes/Project/ProjectFileSystemModel.cpp
@@ -173,6 +173,7 @@ void ProjectFileSystemModel::updateReferences()
std::for_each(sourcePathList.begin(), sourcePathList.end(), addReferencesPresentation);
std::for_each(fontFileList.begin(), fontFileList.end(), addReferencesPresentation);
std::for_each(effectTextureList.begin(), effectTextureList.end(), addReferencesProject);
+ std::for_each(effectTextureList.begin(), effectTextureList.end(), addReferencesPresentation);
std::for_each(renderableList.begin(), renderableList.end(), addReferencesRenderable);
m_references.insert(projectPath);