Check for more dirty flags

This fixes an issue of the formeditor which did not update properly if
components contain items that have one of zvalue, opacity or visibility
attributes animated.

Change-Id: I1b20f09177878419b2b18aaf94c84b6ae437be7d
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
Knud Dollereder
2022-09-21 13:22:34 +02:00
parent 73c912a458
commit 93d4b057cf

View File

@@ -100,7 +100,13 @@ void Qt5RenderNodeInstanceServer::collectItemChangesAndSendChangeCommands()
m_dirtyInstanceSet.insert(instanceForObject(effectParent));
}
}
} else if (DesignerSupport::isDirty(item, DesignerSupport::AllMask)) {
} else if (DesignerSupport::isDirty(
item,
DesignerSupport::DirtyType(
DesignerSupport::AllMask
| DesignerSupport::ZValue
| DesignerSupport::OpacityValue
| DesignerSupport::Visible))) {
ServerNodeInstance ancestorInstance = findNodeInstanceForItem(
item->parentItem());
if (ancestorInstance.isValid())