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

If type is removed and then readded to a module, it will not have any prototypes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • QDS 4.8.0
    • QDS 4.8.0
    • Project Storage
    • None

      If an existing generated type is removed and then the same type is readded, the type will no longer have any prototypes.

      See example outputs when adding, removing, and re-adding the same material from content library view:

      First add of material to the project, output from MaterialBrowserView::nodeReparented() listing allExportedTypeNames() for all selfAndPrototypes() of the reparented node of the added type:

      node= "Generated.Bundles.Materials.StoneMaterial"
      prototype= "StoneMaterial"
      prototype= "StoneMaterial"
      prototype= "PrincipledMaterial"
      prototype= "PrincipledMaterial"
      prototype= "PrincipledMaterial"
      prototype= "PrincipledMaterial"
      prototype= "PrincipledMaterial"
      prototype= "QQuick3DPrincipledMaterial"
      prototype= "Material"
      prototype= "QQuick3DMaterial"
      prototype= "Object3D"
      prototype= "QQuick3DObject"
      prototype= "QtObject"
      prototype= "QObject"
      

      After removal and re-adding of the same material, the list of prototypes is much shorter, containing only the self types:

      node= "Generated.Bundles.Materials.StoneMaterial"
      prototype= "StoneMaterial"
      prototype= "StoneMaterial"
      

      This breaks all isBasedOn checks for the node.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            bubke Marco Bubke
            e0348803 Miikka Heikkinen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes