summaryrefslogtreecommitdiff
path: root/scene/resources
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/resources
parent174c14762fd38f8a8f0a04f69a5fdf3f81fc1b75 (diff)
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/resources')
-rw-r--r--scene/resources/material.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/material.cpp b/scene/resources/material.cpp
index 16fce5e08a..27e1590940 100644
--- a/scene/resources/material.cpp
+++ b/scene/resources/material.cpp
@@ -84,7 +84,7 @@ void Material::inspect_native_shader_code() {
SceneTree *st = Object::cast_to<SceneTree>(OS::get_singleton()->get_main_loop());
RID shader = get_shader_rid();
if (st && shader.is_valid()) {
- st->call_group("_native_shader_source_visualizer", "_inspect_shader", shader);
+ st->call_group_flags(SceneTree::GROUP_CALL_DEFERRED, "_native_shader_source_visualizer", "_inspect_shader", shader);
}
}