summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--editorlib/src/editorsceneparser.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/editorlib/src/editorsceneparser.cpp b/editorlib/src/editorsceneparser.cpp
index fa2185b..dd8aca7 100644
--- a/editorlib/src/editorsceneparser.cpp
+++ b/editorlib/src/editorsceneparser.cpp
@@ -289,8 +289,10 @@ bool EditorSceneParser::exportQmlScene(Qt3DCore::QEntity *sceneEntity, const QUr
Qt3DCore::QTransform *sceneEntityTransform = new Qt3DCore::QTransform;
sceneEntity->addComponent(sceneEntityTransform);
- m_stream << indent() << componentsStart << outComponent(renderSettings) << QStringLiteral(",")
- << outComponent(inputSettings) << componentsEnd << endl << endl;
+ QString inputSettingsId = outComponent(inputSettings);
+ QString renderSettingsId = outComponent(renderSettings);
+ m_stream << indent() << componentsStart << renderSettingsId << QStringLiteral(",")
+ << inputSettingsId << componentsEnd << endl << endl;
forwardRenderer->setCamera(nullptr);
delete renderSettings;