diff options
author | kobewi <kobewi4e@gmail.com> | 2023-07-03 21:29:37 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2023-07-17 19:35:57 +0200 |
commit | de4a3fa151d2cef139149bb2b878ec8923ba2ce8 (patch) | |
tree | 1a023d3bf44bef9f87522c94c4f951bf164877f5 /scene/resources/visual_shader.cpp | |
parent | 2c552140686b5366e48c61a1a15001f15359cccc (diff) | |
download | redot-engine-de4a3fa151d2cef139149bb2b878ec8923ba2ce8.tar.gz |
Unify and streamline connecting to Resource changes
Diffstat (limited to 'scene/resources/visual_shader.cpp')
-rw-r--r-- | scene/resources/visual_shader.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/resources/visual_shader.cpp b/scene/resources/visual_shader.cpp index 0c2c21380a..8d034d3458 100644 --- a/scene/resources/visual_shader.cpp +++ b/scene/resources/visual_shader.cpp @@ -767,7 +767,7 @@ void VisualShader::add_node(Type p_type, const Ref<VisualShaderNode> &p_node, co input->shader_type = p_type; } - n.node->connect("changed", callable_mp(this, &VisualShader::_queue_update)); + n.node->connect_changed(callable_mp(this, &VisualShader::_queue_update)); Ref<VisualShaderNodeCustom> custom = n.node; if (custom.is_valid()) { @@ -834,7 +834,7 @@ void VisualShader::remove_node(Type p_type, int p_id) { Graph *g = &graph[p_type]; ERR_FAIL_COND(!g->nodes.has(p_id)); - g->nodes[p_id].node->disconnect("changed", callable_mp(this, &VisualShader::_queue_update)); + g->nodes[p_id].node->disconnect_changed(callable_mp(this, &VisualShader::_queue_update)); g->nodes.erase(p_id); @@ -907,7 +907,7 @@ void VisualShader::replace_node(Type p_type, int p_id, const StringName &p_new_c } } - vsn->connect("changed", callable_mp(this, &VisualShader::_queue_update)); + vsn->connect_changed(callable_mp(this, &VisualShader::_queue_update)); g->nodes[p_id].node = Ref<VisualShaderNode>(vsn); _queue_update(); |