You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
Unify usage of GLOBAL/EDITOR_GET
This commit is contained in:
@@ -1454,7 +1454,7 @@ void AudioServer::update() {
|
||||
}
|
||||
|
||||
void AudioServer::load_default_bus_layout() {
|
||||
String layout_path = ProjectSettings::get_singleton()->get("audio/buses/default_bus_layout");
|
||||
String layout_path = GLOBAL_GET("audio/buses/default_bus_layout");
|
||||
|
||||
if (ResourceLoader::exists(layout_path)) {
|
||||
Ref<AudioBusLayout> default_layout = ResourceLoader::load(layout_path);
|
||||
|
||||
@@ -2113,7 +2113,7 @@ void MaterialStorage::global_shader_parameters_load_settings(bool p_load_texture
|
||||
for (const PropertyInfo &E : settings) {
|
||||
if (E.name.begins_with("shader_globals/")) {
|
||||
StringName name = E.name.get_slice("/", 1);
|
||||
Dictionary d = ProjectSettings::get_singleton()->get(E.name);
|
||||
Dictionary d = GLOBAL_GET(E.name);
|
||||
|
||||
ERR_CONTINUE(!d.has("type"));
|
||||
ERR_CONTINUE(!d.has("value"));
|
||||
|
||||
Reference in New Issue
Block a user