From 4bfbf641dc2b8aca8de9f86a9908063f39bd6e31 Mon Sep 17 00:00:00 2001 From: jacopograndi Date: Fri, 14 Jan 2022 13:04:34 +0100 Subject: . --- scripts/movement.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/movement.gd') diff --git a/scripts/movement.gd b/scripts/movement.gd index fb9e7bd..3247a2f 100644 --- a/scripts/movement.gd +++ b/scripts/movement.gd @@ -78,7 +78,8 @@ func selected_event (sel_name, sel_type): _gui.refresh(in_editor) if sel_type == "turrets": - for child in ptr.get_children(): child.queue_free(); + for child in ptr.get_children(): + if child.name != "base": child.queue_free(); var info = load_turrets.info[sel.name] var model = load_turrets.models[info.model_name] var instance_model = model.instance() -- cgit v1.2.3-54-g00ecf