summaryrefslogtreecommitdiffstats
path: root/src/runtime/Qt3DSApplication.cpp
diff options
context:
space:
mode:
authorJere Tuliniemi <jere.tuliniemi@qt.io>2020-05-06 09:59:31 +0300
committerJere Tuliniemi <jere.tuliniemi@qt.io>2020-05-08 14:17:35 +0300
commit74a1bf8d89eb3a62e0803264cea14568e83dc690 (patch)
tree470d1561b60e7d1f61f6f890a5143443a05bb414 /src/runtime/Qt3DSApplication.cpp
parentc179b9602ecd003c306803b757fd44203e584405 (diff)
Fix data inputs with delayed loadingv2.7.0-rc2
Initialize data inputs and outputs every time a presentation is loaded. Task-number: QT3DS-4105 Change-Id: If2e9a6d95cc40109cb48f4d4d8b5dc88f963fb74 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Antti Määttä <antti.maatta@qt.io>
Diffstat (limited to 'src/runtime/Qt3DSApplication.cpp')
-rw-r--r--src/runtime/Qt3DSApplication.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/runtime/Qt3DSApplication.cpp b/src/runtime/Qt3DSApplication.cpp
index f12fef9..7b4d625 100644
--- a/src/runtime/Qt3DSApplication.cpp
+++ b/src/runtime/Qt3DSApplication.cpp
@@ -2277,6 +2277,10 @@ bool AssetHandlers::handlePresentation(SApp &app, SAssetValue &asset, bool initI
thePathStr.c_str());
return false;
}
+
+ app.GetRuntimeFactory().GetScriptEngineQml()
+ .initializePresentationDataInputsAndOutputs(*thePresentationAsset.m_Presentation);
+
return true;
}