Improve debug geometry deletion
- Don't set the parent of the model to the collision shape since it will
crash if the shape is destroyed before the model.
- On each frame update, remove all debug models that are not drawn.
Pick-to: 6.5
Change-Id: I41de03e05baa7c1c0b910a7437a9466bb76e0cc4
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
| commit | 0acca63c1ec0fd71a443f2810173529099072f08 |
| parent | d5c1588a889c627c4f228912bfb7f09a70cecb01 |
| author | Jonas Karlsson <jonas.karlsson@qt.io> |
| committer | Jonas Karlsson <jonas.karlsson@qt.io> |
| commit time | Mon, 20 Feb 2023 11:11:46 +0100 |