Browse Source

Fixed signal connection dialog ignoring indentation settings when creating a function.

Michael Alexsander Silva Dias 7 năm trước cách đây
mục cha
commit
3fac4ef336
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      modules/gdscript/gd_editor.cpp

+ 1 - 1
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;
 }