소스 검색

Merge pull request #12907 from YeldhamDev/indentation_connection

Fixed signal connection dialog ignoring indentation settings when creating a function
Rémi Verschelde 7 년 전
부모
커밋
2a9e742c12
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
 }