Reuse cached scene resource if already opened in editor when creating autoloads. - #123532
leandro-benedet-garcia wants to merge 1 commit into
Conversation
|
tbh this code can be replaced simply by |
I was wondering the same, probably legacy code, I will just change to it and then push if I don't see anything wrong with it. |
|
Not sure how it would be legacy code, the loader cache is very old and the UID system is far younger, so I think there might be some potential reason it wasn't used, so good to look into |
|
If you mean the |
|
I mean the UID system as such, but that would also be code that's younger than the cache system |
I actually meant the autoload system itself and the people that implemented UID to work around a issue in the autoload system, but I am already investigating and trying just to load stuff. |
92d7a13 to
92a7a24
Compare
What problem(s) does this PR solve?
Additional information
With this PR, the editor checks if a cache already exists and if it does, it instantiates the autoload node from it instead of trying to open the file again.