You've already forked godot
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user