mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-05-05 16:44:50 -04:00
Call text_to_pixels() when changing tool
This commit is contained in:
parent
ed6a1e4a28
commit
9d71b0cdd9
1 changed files with 3 additions and 0 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue