mirror of
https://github.com/Relintai/godot-resources-as-sheets-plugin.git
synced 2025-04-08 17:41:50 +02:00
Merge pull request #26 from vmedea/unnecessary-instantiation
Remove unnecessary instantiation in _on_search_cond_text_submitted
This commit is contained in:
commit
68cde04040
@ -391,8 +391,7 @@ func _on_search_cond_text_submitted(new_text : String):
|
||||
new_script.source_code = "static func can_show(res, index):\n\treturn " + new_text
|
||||
new_script.reload()
|
||||
|
||||
var new_script_instance = new_script.new()
|
||||
search_cond = new_script_instance
|
||||
search_cond = new_script
|
||||
refresh()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user