Allow editing editor settings from project manager

This commit is contained in:
kobewi
2023-09-23 22:58:45 +02:00
parent e47fb8b898
commit a1340f05a9
8 changed files with 89 additions and 20 deletions

View File

@ -1870,7 +1870,7 @@ void MaterialStorage::global_shader_parameter_remove(const StringName &p_name) {
}
Vector<StringName> MaterialStorage::global_shader_parameter_get_list() const {
if (!Engine::get_singleton()->is_editor_hint()) {
if (!Engine::get_singleton()->is_editor_hint() && !Engine::get_singleton()->is_project_manager_hint()) {
ERR_FAIL_V_MSG(Vector<StringName>(), "This function should never be used outside the editor, it can severely damage performance.");
}