forked from qt-creator/qt-creator
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:
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user