Move editor paths into the EditorPaths class

This commit is contained in:
Aaron Franke 2022-07-28 19:36:26 -05:00
parent 5352cf8e2f
commit ac870ab1c8
No known key found for this signature in database
GPG key ID: 40A1750B977E56BF
19 changed files with 122 additions and 116 deletions

View file

@ -51,7 +51,7 @@
#endif
#ifdef TOOLS_ENABLED
#include "editor/editor_settings.h"
#include "editor/editor_paths.h"
#endif
///////////////////////////
@ -848,7 +848,7 @@ Error GDScript::reload(bool p_keep_state) {
// Loading a template, don't parse.
#ifdef TOOLS_ENABLED
if (EditorSettings::get_singleton() && basedir.begins_with(EditorSettings::get_singleton()->get_project_script_templates_dir())) {
if (EditorPaths::get_singleton() && basedir.begins_with(EditorPaths::get_singleton()->get_project_script_templates_dir())) {
return OK;
}
#endif