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

Particle shapes don't support reparenting

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important 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)

      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.

        For Gerrit Dashboard: QTBUG-101882
        # Subject Branch Project Status CR V

            qt.team.graphics.and.multimedia Qt Graphics Team
            e0348803 Miikka Heikkinen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes