Allow fixing indirect missing dependencies manually #107580
Open
+135
−95
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently, the dependency error dialog is only shown for missing dependencies that are referenced directly by the opening scene. Therefore, if the missing dependency is deeply nested, manually fixing it becomes cumbersome. I guess this is the main reason we devote to improving automatic solutions. However, there are situations where manual fixing is inevitable.
This PR lists all missing items related to the current scene in the Dependency Errors dialog. It also allows the user to open the corresponding dependency editing dialog directly from this dialog, so that they don't have to manually locate them one by one in the file system.
deps-demo.mp4
Note: Ideally, fixing one missing resource should ideally fix all references to it automatically. However, this would involve a complete refactoring of the dependency editing dialog. I think that could be a separate PR.
Test project with several missing dependencies: deps-mrp.zip
Closes godotengine/godot-proposals#12681