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

Add preliminary support for subprojects #51895

Closed
wants to merge 1 commit into from

Conversation

Xrayez
Copy link
Contributor

@Xrayez Xrayez commented Aug 19, 2021

Solves part of godotengine/godot-proposals#1205. Originally presented in godotengine/godot-proposals#1205 (comment) in 3.2, but rebased to 3.4 now due to conflicts.

This PR is not meant to be merged of course, but I'd like to track this solution because I've been using it successfully in my project, and other people expressed some interest as well. This PR will be eventually closed once a proper solution for godotengine/godot-proposals#1205 is out by @reduz (maybe in Godot 4.1?). Feedback welcome, of course!

@Xrayez Xrayez requested review from a team as code owners August 19, 2021 18:56
@Xrayez Xrayez marked this pull request as draft August 19, 2021 18:56
@Xrayez Xrayez changed the title Remap subproject paths to main project in ResourceLoader Add preliminary support for subprojects Aug 19, 2021
@Calinou Calinou added this to the 3.4 milestone Aug 19, 2021
Save and load subproject paths. Allows to save resources in a subproject with
paths localized.

Remaps paths when checking subproject resources. This caused GDScript to not
load `gdc/gde` files, and likely any other file which is remapped on export.

Fix `ResourceLoader` not returning subproject for existing paths. This caused
issues with packed scenes.

Expose `Resource.project_path`.
@akien-mga akien-mga modified the milestones: 3.4, 3.5 Nov 8, 2021
@akien-mga akien-mga modified the milestones: 3.5, 3.x Jul 2, 2022
@akien-mga
Copy link
Member

Closing as this contributor can no longer update this further.

@Zireael07
Copy link
Contributor

Can someone else pick this up instead?

@YuriSizov YuriSizov removed this from the 3.x milestone Dec 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants