From 5de144af43f5c82b9766310460becc98aaf00bc0 Mon Sep 17 00:00:00 2001 From: matheusmdx Date: Wed, 9 Oct 2024 15:21:27 -0300 Subject: [PATCH] Fix is_inside_tree error with CPUParticles3D --- scene/3d/cpu_particles_3d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/3d/cpu_particles_3d.cpp b/scene/3d/cpu_particles_3d.cpp index acbc443a93b..4682bdca599 100644 --- a/scene/3d/cpu_particles_3d.cpp +++ b/scene/3d/cpu_particles_3d.cpp @@ -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; }