1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Merge pull request #110231 from fstxz/fix_shader_path

Fix invalid suggested file name when saving resource from a scene that hasn't been saved yet
This commit is contained in:
Thaddeus Crews
2025-09-24 09:59:06 -05:00
2 changed files with 5 additions and 2 deletions

View File

@@ -1690,7 +1690,7 @@ void EditorNode::save_resource_as(const Ref<Resource> &p_resource, const String
file->set_current_file(String());
}
}
} else if (!p_resource->get_path().is_empty()) {
} else if (!p_resource->get_path().get_base_dir().is_empty()) {
file->set_current_path(p_resource->get_path());
if (!extensions.is_empty()) {
const String ext = p_resource->get_path().get_extension().to_lower();