FyroxEngine / Fyrox

3D and 2D game engine written in Rust
https://fyrox.rs
MIT License
7.65k stars 345 forks source link

Panic when switching Partical System's lifetime from None to Some #309

Closed lihe07 closed 2 years ago

lihe07 commented 2 years ago

When I'm trying to switching a Partical System's lifetime, the editor paniced This is the detailed output:

thread 'main' panicked at 'Attempt to borrow destroyed object at [Idx: 36; Gen: 1] handle.', ...\rg3d-core-0.19.0\src\pool.rs:613:21
mrDIMAS commented 2 years ago

That's known bug, it happens because editor updates scene and destroys all objects with lifetime < 0.