mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +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:
commit
f987cf8a8a
2 changed files with 5 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue