diff options
author | jacopograndi <jacopo.grandi@outlook.it> | 2022-01-14 13:04:34 +0100 |
---|---|---|
committer | jacopograndi <jacopo.grandi@outlook.it> | 2022-01-14 13:04:34 +0100 |
commit | 4bfbf641dc2b8aca8de9f86a9908063f39bd6e31 (patch) | |
tree | 3d016842fc578f59cb0727ddb506c3b01cf53c62 /scripts/movement.gd | |
parent | 90af765b430e3a75daa9b2b4d0343ae58ad5c33d (diff) |
.
Diffstat (limited to 'scripts/movement.gd')
-rw-r--r-- | scripts/movement.gd | 3 |
1 files changed, 2 insertions, 1 deletions
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() |