Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-113043

Picking fails with imported scene

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.5.1, 6.6.0
    • 6.5.1
    • Quick: 3D
    • None
    • f8b8abddc (dev), 867959bbe (6.5)

    Description

      Picking in a detached imported scene fails after second time the scene is imported to a View3D. The attached project can be used to reproduce this when opened inside QDS dev built against Qt 6.5.1.

      • Open attached project in QDS. Make sure 6.5.1 kit is used.
      • Click on "group" item in navigator (this is our detached scene)
      • Click on cylinder in 3D view -> cylinder is seleted correctly
      • Click on "view3D" item on navigator to change the scene
      • Click again on "group" to change the scene back to detached scene
      • Click on cylinder in 3D view -> cylinder is is not selected

      The problem appears to be that on the second time the detached scene is used as importScene, it is still using the same old backend node from the first time. Since the old node exists and is still same as the current node after running updateSpatialNode(), the node is not added to the node map in QQuick3DSceneManager::updateDirtySpatialNode(). This means that picking cannot resolve the frontend node from the backend node.

      Attachments

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

        Activity

          People

            stromme Christian
            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