QmlDesigner: Render main scene in information puppet

Upcoming changes in quick3d require rendering of the main scene
at least once to resolve rendering context corretly.

Task-number: QDS-9699
Change-Id: I77520309029730f306adf24694ee357d29d27209
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
Miikka Heikkinen
2023-04-20 16:30:24 +03:00
parent b1f55d5a6a
commit 35582ffcb5

View File

@@ -1071,6 +1071,13 @@ void Qt5InformationNodeInstanceServer::doRender3DEditView()
m_editView3DData.window->afterRendering(); m_editView3DData.window->afterRendering();
} }
#else #else
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 1)
static bool justOnce = true;
if (justOnce) {
justOnce = false;
renderWindow(); // Need to make sure all View3Ds have context
}
#endif
renderImage = grabRenderControl(m_editView3DData); renderImage = grabRenderControl(m_editView3DData);
#endif #endif