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:
parent
6efa557e9b
commit
c4559c02de
5 changed files with 54 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue