Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
QDS 3.8
-
None
Description
Creating a node and setting dynamic properties on it in same transaction doesn't work correctly. The properties will appear in the duplicate but they will look like regular non-dynamic properties. This will cause rewriter to fail. If setting dynamic properties is done in a separate transaction, it'll work fine.
Noticed when implementing support for duplicating material nodes with dynamic properties. See MaterialEditorView::duplicateMaterial() function. If the two transactions are combined, the duplication of material with dynamic properties won't work.
See https://codereview.qt-project.org/c/qt-creator/qt-creator/+/440140