diff options
author | Hristo Stamenov <capitane71@gmail.com> | 2021-10-24 19:38:47 +0300 |
---|---|---|
committer | Hristo Stamenov <capitane71@gmail.com> | 2021-10-24 22:04:30 +0300 |
commit | 3ec927cfefaa33ca3862a73283cec8fa8d4f29db (patch) | |
tree | 2ca6608b5be7e2958990882074add7c0626acee1 /thirdparty | |
parent | 80801e5f66d180f15d151dd50b6d7731208a4dd5 (diff) |
Setting the visible multimesh instance to -1 so that they are updated correctly on set_amount.
When emitting stops CPUParticles3D::_set_redraw(bool p_redraw) will set that value to 0 so when you change the amount after that it will actually not update correclty.
This fixes an issue where if it was not emitting when the scene loaded and it start after that the amount is not reflected correclty. This also happened when you checked out the box for emitting in the editor, changed the value of amount and then checked on the box for emitting. With this change if it is emitting during the change it does interrupt the previous particles when you change. The amount and the emit starts from beginning but that is to be expected on an amount of particles change.
Diffstat (limited to 'thirdparty')
0 files changed, 0 insertions, 0 deletions