Fix is_inside_tree error with CPUParticles3D

This commit is contained in:
matheusmdx 2024-10-09 15:21:27 -03:00
parent 4c4e673344
commit 5de144af43

View file

@ -595,7 +595,7 @@ static real_t rand_from_seed(uint32_t &seed) {
}
void CPUParticles3D::_update_internal() {
if (particles.size() == 0 || !is_visible_in_tree()) {
if (particles.size() == 0 || !is_inside_tree() || !is_visible_in_tree()) {
_set_redraw(false);
return;
}