Godot: FileSystem dock can't open files

Created on 1 Nov 2017  路  6Comments  路  Source: godotengine/godot

Operating system or device, Godot version, GPU Model and driver (if graphics related):
Godot 3.0 master https://github.com/godotengine/godot/commit/7a5594bdb79f0859ce67166b7fb6ed89098e5bcc

Issue description:

https://i.imgur.com/LLGrNtx.gifv

I'm guessing this PR broke it https://github.com/godotengine/godot/pull/10261

Steps to reproduce:

  1. Try to use the filesystem dock to open a file
bug editor

All 6 comments

Ping @Cradmon

Tested with a local revert, I can confirm that the regression comes from #10261.

If I'm not mistaken the issue comes from files->get_item_metadata(p_idx) in FileSystemDock::_select_file(p_idx)
When I select my file "Character.tscn" in my folder "Characters", the function returns a string with "res://Characters/Character.tscn" in the old code whereas I get "res://Characters" with the new one thus having an error saying that "res://Characters" cannot be found

Just had a look at the error, and found the mistake.
It was due to renaming a variable in _select_file.
I'll submit the PR.

Nice, I was stuck with this issue myself ^^

@Adinimys I made the original commit, so it was easier for me to backtrace the error. Your comment on the return string was extremely useful in quickly finding the mistake I made.

Was this page helpful?
0 / 5 - 0 ratings