Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-12615

Auxiliary properties not loaded correctly at project open

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • QDS 4.5
    • QDS 4.5
    • Model and Rewriter
    • 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

        Activity

          People

            e0348803 Miikka Heikkinen
            e0348803 Miikka Heikkinen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes