summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-01-15 21:36:32 +0100
committerGitHub <noreply@github.com>2021-01-15 21:36:32 +0100
commitebe8751fff1576de65682340e81eb9f86ce23b3b (patch)
treeb97b21901feeb95ede983f88ef520a5756985b93
parentc7fb7674c8f9163a717beaa922cd7e6c8aeb77b6 (diff)
parent4a85f4cafe00bcd81b21db7530d28b3c80c7b5aa (diff)
Merge pull request #45216 from Chaosus/vs_fix_updating
Fix replaced visual shader nodes updating
-rw-r--r--scene/resources/visual_shader.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/resources/visual_shader.cpp b/scene/resources/visual_shader.cpp
index 7b2add12a9..2b28aa25cf 100644
--- a/scene/resources/visual_shader.cpp
+++ b/scene/resources/visual_shader.cpp
@@ -496,6 +496,7 @@ void VisualShader::replace_node(Type p_type, int p_id, const StringName &p_new_c
return;
}
VisualShaderNode *vsn = Object::cast_to<VisualShaderNode>(ClassDB::instance(p_new_class));
+ vsn->connect("changed", callable_mp(this, &VisualShader::_queue_update));
g->nodes[p_id].node = Ref<VisualShaderNode>(vsn);
_queue_update();