commit a362e3dac6d4b31d99902813f1175505d14a6e1c parent 7c59ae6b22755b242f6bbedb42517e5d0275fab6 Author: Yuval Langer <yuvallangerontheroad@gmail.com> Date: Sat, 2 Oct 2021 14:55:22 +0300 Always set spheres. Diffstat:
M | Saucer.gd | | | 12 | +++++------- |
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/Saucer.gd b/Saucer.gd @@ -14,8 +14,7 @@ export var height_of_little_spheres: float = 0.924 setget setget_height func _ready() -> void: - if Engine.editor_hint: - set_spheres() + set_spheres() func setget_height(height): @@ -40,11 +39,10 @@ func set_spheres() -> void: func remove_existing_spheres() -> void: - if Engine.editor_hint: - print_debug(small_spheres) - var small_sphere_children: = small_spheres.get_children() - for small_sphere in small_sphere_children: - small_spheres.remove_child(small_sphere) + print_debug(small_spheres) + var small_sphere_children: = small_spheres.get_children() + for small_sphere in small_sphere_children: + small_spheres.remove_child(small_sphere) func add_little_spheres() -> void: