Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When a resource that was referenced in a scene is deleted, editor cant open scene. Provide info about what could not be loaded and try to load scene anyway. #8490

Open
RonYanDaik opened this issue Nov 22, 2023 · 4 comments

Comments

@RonYanDaik
Copy link

Describe the project you are working on

3D game with meshes.

Describe the problem or limitation you are having in your project

Sometimes I have duplicated resources due to reimports routine. When I'm trying to clean I can delete something that still is referenced while editor is closed, and then editor cant open some scenes and its hard to tell why.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

When a resource that was referenced in a scene is deleted, editor cant open scene.
Provide info about what could not be loaded and try to load scene anyway.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

Show info what variable failed to find which resource.
And allow to open scene anyway.

image

If this enhancement will not be used often, can it be worked around with a few lines of script?

No workaround. But a flaw that should be handled.

Is there a reason why this should be core and not an add-on in the asset library?

its edtior code.

@AThousandShips
Copy link
Member

AThousandShips commented Nov 22, 2023

try to load scene anyway

How would this work, please provide more details about this, it would require some changes to the scene, the dialog isn't lying to you, it can't be loaded, so either some content would have to be removed or it simply can't be loaded

This could be done by loading invalid data as a placeholder, or simply ignoring it

For this I'd suggest creating a copy with a new name to minimise the risk of accidentally saving it over the original

@RonYanDaik
Copy link
Author

How would this work, please provide more details about this

I'm thinking about: When user presses "Load Anyway" the editors assigns missing resources to null, and prints into log what resource he was expecting at that variable.

This will allow user to fix the scene. Because it he didn't save a copy of resource he deleted he wont be able to fix this.

@YuriSizov
Copy link
Contributor

This seems like a duplicate of this bug report godotengine/godot#85152 which should be addressed by godotengine/godot#85159

@KoBeWi
Copy link
Member

KoBeWi commented Nov 22, 2023

Generally if editor can't open something due to missing resources, you can go straight to making a bug report. Such cases should always be recoverable, the only valid case when you can't open a scene is when the scene file is corrupted or has invalid syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants