diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-08-12 23:40:13 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2022-05-05 16:59:37 +0200 |
commit | aabbb4000924182ed5db5128f0e6e32cdc7b851b (patch) | |
tree | 17f0de59f2c601fe353b48999e45f66f5c247109 /scene/main/shader_globals_override.cpp | |
parent | 174c14762fd38f8a8f0a04f69a5fdf3f81fc1b75 (diff) | |
download | redot-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.cpp | 2 |
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; } |