diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-01-15 21:36:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-15 21:36:32 +0100 |
commit | ebe8751fff1576de65682340e81eb9f86ce23b3b (patch) | |
tree | b97b21901feeb95ede983f88ef520a5756985b93 | |
parent | c7fb7674c8f9163a717beaa922cd7e6c8aeb77b6 (diff) | |
parent | 4a85f4cafe00bcd81b21db7530d28b3c80c7b5aa (diff) |
Merge pull request #45216 from Chaosus/vs_fix_updating
Fix replaced visual shader nodes updating
-rw-r--r-- | scene/resources/visual_shader.cpp | 1 |
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(); |