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

If Repeater3D is defined in separate qml file, _pickTarget is not properly set

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • QDS 3.0
    • QDS 2.3
    • 3D View
    • None
    • 2
    • 553de19151 (qt-creator/qt-creator/6.0) 553de19151 (qt-creator/qt-creator/master) 553de19151 (qt-creator/qt-creator/qmlprojectstorage)
    • QDS Oulu - 2021 Week 49/50

    Description

      Adding a component defined in a separate qml file to the scene doesn't properly update _pickTarget property of any models generated by Repeater3D inside the component. E.g. qml file has content:

      import QtQuick
      import QtQuick3D
      import Q65
      
      Node {
          id: componentRoot
      
          Repeater3D {
              id: repeater3D
              model: 5
      
              Model {
                  id: cone
                  x: index * 105
                  y: 0
                  source: "#Cone"
                  z: 0
                  eulerRotation.x: index * 15
                  materials: coneMaterial
                  DefaultMaterial {
                      id: coneMaterial
                      diffuseColor: "#4aee45"
                  }
              }
          }
      }
      

      Adding this component into the scene in View3D and clicking on any of the generated cones briefly selects the individual cone rather than the component node it should.

      Attachments

        For Gerrit Dashboard: QDS-5745
        # Subject Branch Project Status CR V

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes