Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
QDS 4.5
-
None
-
7ba7624bb (qds/dev), 0c1009608 (qds/4.5)
Description
There seems to be some issue with initializing aux properties on project load. E.g. if project has this aux property defined in .qml:
/*##^## Designer { D{i:9;cameraSpeed3d:57;cameraSpeed3dMultiplier:3} } ##^##*/
It doesn't initialize these values to the View3D instance when project is loaded:
ModelNode node = Utils3D::active3DSceneNode(this); // node internalId matches the value in above snipped auto speedProp = node.auxiliaryData(edit3dCameraSpeedDocProperty); auto multProp = node.auxiliaryData(edit3dCameraSpeedMultiplierDocProperty); if (!speedProp || !multProp) { // this branch is executed, i.e. properties didn't have values ... }
To repro:
- Create 3D project and adjust the camera speed settings for the View3D (via 3d view toolbar)
- Save the project (make sure the aux property got saved as comment in .qml - you may have to make a regular change to the document to enforce this)
- Close QDS
- Reopen QDS and load the project
- Open camera speed settings dialog -> default values are shown.
Attachments
For Gerrit Dashboard: QDS-12615 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
557802,2 | QmlDesigner: Restore auxiliary properties after rewriter model attach | qds/dev | qt-creator/qt-creator | Status: MERGED | +2 | 0 |
557811,2 | QmlDesigner: Restore auxiliary properties after rewriter model attach | qds/4.5 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |