From 3fac4ef336c3846f423a6243f34e8d9d6eeac85e Mon Sep 17 00:00:00 2001 From: Michael Alexsander Silva Dias Date: Mon, 13 Nov 2017 17:45:13 -0200 Subject: Fixed signal connection dialog ignoring indentation settings when creating a function. --- modules/gdscript/gd_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/gdscript') diff --git a/modules/gdscript/gd_editor.cpp b/modules/gdscript/gd_editor.cpp index 346b7d326a..655e785174 100644 --- a/modules/gdscript/gd_editor.cpp +++ b/modules/gdscript/gd_editor.cpp @@ -365,7 +365,7 @@ String GDScriptLanguage::make_function(const String &p_class, const String &p_na } s += " "; } - s += "):\n\tpass # replace with function body\n"; + s += "):\n" + _get_indentation() + "pass # replace with function body\n"; return s; } -- cgit v1.2.3