Eliminate ext check for some nodes where we want to guess a label but which have this property (I.e. LineEdit/TextEdit.)

This commit is contained in:
Nolan Darilek 2020-11-09 11:39:36 -06:00
parent 0d00db483d
commit d6d9ff32e2

View File

@ -31,7 +31,7 @@ func click(item := node, button_index = BUTTON_LEFT):
func _guess_label():
if node is Label:
return
if node.get("text"):
if not node is LineEdit and not node is TextEdit and node.get("text"):
return
var tokens = PoolStringArray([])
var to_check = node