Merge pull request #45216 from Chaosus/vs_fix_updating

Fix replaced visual shader nodes updating
This commit is contained in:
Rémi Verschelde 2021-01-15 21:36:32 +01:00 committed by GitHub
commit ebe8751fff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();