Fix is_inside_tree error with CPUParticles3D
This commit is contained in:
parent
4c4e673344
commit
5de144af43
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue