summaryrefslogtreecommitdiffstats
path: root/scene/main/shader_globals_override.cpp
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2021-08-12 23:40:13 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2022-05-05 16:59:37 +0200
commitaabbb4000924182ed5db5128f0e6e32cdc7b851b (patch)
tree17f0de59f2c601fe353b48999e45f66f5c247109 /scene/main/shader_globals_override.cpp
parent174c14762fd38f8a8f0a04f69a5fdf3f81fc1b75 (diff)
downloadredot-engine-aabbb4000924182ed5db5128f0e6e32cdc7b851b.tar.gz
Make `{call,set,notify}_group()` immediate by default
This results in less surprising behavior out of the box. Internal usages were modified to keep the existing behavior identical there.
Diffstat (limited to 'scene/main/shader_globals_override.cpp')
-rw-r--r--scene/main/shader_globals_override.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/shader_globals_override.cpp b/scene/main/shader_globals_override.cpp
index 7c689bd436..ed08c45a01 100644
--- a/scene/main/shader_globals_override.cpp
+++ b/scene/main/shader_globals_override.cpp
@@ -267,7 +267,7 @@ void ShaderGlobalsOverride::_notification(int p_what) {
remove_from_group(SceneStringNames::get_singleton()->shader_overrides_group_active);
remove_from_group(SceneStringNames::get_singleton()->shader_overrides_group);
- get_tree()->call_group(SceneStringNames::get_singleton()->shader_overrides_group, "_activate"); //another may want to activate when this is removed
+ get_tree()->call_group_flags(SceneTree::GROUP_CALL_DEFERRED, SceneStringNames::get_singleton()->shader_overrides_group, "_activate"); //another may want to activate when this is removed
active = false;
} break;
}