diff --git a/src/Autoload/Tools.gd b/src/Autoload/Tools.gd index 638ac63..830b8d3 100644 --- a/src/Autoload/Tools.gd +++ b/src/Autoload/Tools.gd @@ -99,6 +99,9 @@ func assign_tool(name : String, button : int) -> void: if slot.tool_node != null: if slot.tool_node.name == name: return + # If we leave the text tool, make sure to get rid of the TextEdit node + if slot.tool_node.name == "Text": + slot.tool_node.text_to_pixels() panel.remove_child(slot.tool_node) slot.tool_node.queue_free()