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

Particle shapes don't support reparenting

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.2.5, 6.3.1, 6.4.0 Beta1
    • 6.2.3
    • Quick: 3D
    • None
    • e7795895ae (qt/qtquick3d/dev) 0dde84bd8d (qt/qtquick3d/6.3) d13833708d (qt/qtquick3d/6.2) d13833708d (qt/tqtc-qtquick3d/6.2) 0dde84bd8d (qt/tqtc-qtquick3d/6.3) d13833708d (qt/qtquick3d/6.2) 0dde84bd8d (qt/tqtc-qtquick3d/6.3.1)

    Description

      m_parentNode is only set in QQuick3DParticleAbstractShape::componentComplete(), so shape will not function correctly when dynamically created without parent and reparented later. QDS does this when a new node is added to the scene, so a puppet reset is required to make it work.

      Also, since reparenting doesn't update the m_parentNode, you can get a crash if the original parent node is deleted after reparenting.

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.graphics.and.multimedia Qt Graphics Team
              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