VisualShader Conversion fails with Embeds

Potentially resolves https://github.com/godotengine/godot/issues/101375

VisualShader now has a has_node_embeds function that runs through it's child nodes to find embedded resources via object properties. Conversion plugin uses this function to catch the error.
This commit is contained in:
Colin O'Rourke 2025-08-06 13:17:19 -07:00
parent 6efa557e9b
commit c4559c02de
5 changed files with 54 additions and 2 deletions

View file

@ -1925,6 +1925,8 @@ void FileSystemDock::_convert_dialog_action() {
Ref<Resource> original_resource = selected_resources.get(i);
Ref<Resource> new_resource = converted_resources.get(i);
// Notify plugins that the original resource is removed.
emit_signal(SNAME("file_removed"), original_resource->get_path());
// Overwrite the path.
new_resource->set_path(original_resource->get_path(), true);