Fix replaced visual shader nodes updating

This commit is contained in:
Yuri Roubinsky 2021-01-15 21:10:32 +03:00
parent c7fb7674c8
commit 4a85f4cafe
1 changed files with 1 additions and 0 deletions

View File

@ -496,6 +496,7 @@ void VisualShader::replace_node(Type p_type, int p_id, const StringName &p_new_c
return; return;
} }
VisualShaderNode *vsn = Object::cast_to<VisualShaderNode>(ClassDB::instance(p_new_class)); 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); g->nodes[p_id].node = Ref<VisualShaderNode>(vsn);
_queue_update(); _queue_update();