Updated ScriptEditor
Ensure that when we fetch the source code from the editor, we replace any tab characters with 4 spaces.
This commit is contained in:
parent
ba537bc791
commit
199f2cdc9d
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ func _ready() -> void:
|
|||
|
||||
func _handle_run_script() -> void:
|
||||
var script = GDScript.new()
|
||||
script.source_code = %CodeEditor.text
|
||||
script.source_code = %CodeEditor.text.replace("\t"," ")
|
||||
var error := script.reload()
|
||||
if error != OK:
|
||||
print("Failed to parse script!")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue