You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-23 15:16:17 +00:00
Merge pull request #26061 from qarmin/fix_res_error
Fix res:// error when dragging file from outside of editor
This commit is contained in:
@@ -4419,7 +4419,7 @@ void EditorNode::remove_tool_menu_item(const String &p_name) {
|
|||||||
|
|
||||||
void EditorNode::_dropped_files(const Vector<String> &p_files, int p_screen) {
|
void EditorNode::_dropped_files(const Vector<String> &p_files, int p_screen) {
|
||||||
|
|
||||||
String to_path = ProjectSettings::get_singleton()->globalize_path(get_filesystem_dock()->get_current_path());
|
String to_path = ProjectSettings::get_singleton()->globalize_path(get_filesystem_dock()->get_selected_path());
|
||||||
DirAccessRef dir = DirAccess::create(DirAccess::ACCESS_FILESYSTEM);
|
DirAccessRef dir = DirAccess::create(DirAccess::ACCESS_FILESYSTEM);
|
||||||
|
|
||||||
Vector<String> just_copy = String("ttf,otf").split(",");
|
Vector<String> just_copy = String("ttf,otf").split(",");
|
||||||
|
|||||||
Reference in New Issue
Block a user