Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

_process_trail only happens when node can process and is ready

ziahmada2fd10bf3592
diff --git a/scene/3d/trail_3d.cpp b/scene/3d/trail_3d.cpp
index 3ebff83938c..247ccb0181f 100644
--- a/scene/3d/trail_3d.cpp
+++ b/scene/3d/trail_3d.cpp
@@ -661,7 +661,7 @@ void Trail3D::_do_rebuild() {
}
void Trail3D::_process_trail() {
- if (!is_inside_tree() || !is_ready()) {
+ if (!can_process() || !is_ready()) {
return;
}