forked from qt-creator/qt-creator
QmlDesigner: Fix 3D formeditor preview
I remember testing this and ContentUpdateMask seemed to work. This might have changed with Qt 6.3 and using AllMask instead, which works for all cases I tested should not have any negative impact. Task-number: QDS-6896 Change-Id: I648c10fe75df813ae25a54a13a862cad0228bfdb Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
This commit is contained in:
@@ -135,7 +135,7 @@ void Qt5RenderNodeInstanceServer::collectItemChangesAndSendChangeCommands()
|
|||||||
|
|
||||||
if (rootNodeInstance().isSubclassOf("QQuick3DNode") && rootNodeInstance().contentItem()
|
if (rootNodeInstance().isSubclassOf("QQuick3DNode") && rootNodeInstance().contentItem()
|
||||||
&& DesignerSupport::isDirty(rootNodeInstance().contentItem(),
|
&& DesignerSupport::isDirty(rootNodeInstance().contentItem(),
|
||||||
DesignerSupport::ContentUpdateMask)
|
DesignerSupport::AllMask)
|
||||||
&& nodeInstanceClient()->bytesToWrite() < 10000) {
|
&& nodeInstanceClient()->bytesToWrite() < 10000) {
|
||||||
Internal::QuickItemNodeInstance::updateDirtyNode(rootNodeInstance().contentItem());
|
Internal::QuickItemNodeInstance::updateDirtyNode(rootNodeInstance().contentItem());
|
||||||
nodeInstanceClient()->pixmapChanged(createPixmapChangedCommand({rootNodeInstance()}));
|
nodeInstanceClient()->pixmapChanged(createPixmapChangedCommand({rootNodeInstance()}));
|
||||||
|
Reference in New Issue
Block a user