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

Update workspace also reload the current map if needed #47

Merged
merged 11 commits into from Nov 22, 2022

Conversation

SRombautsU
Copy link

Detects if some packages to reload are OFPA from the the current map

in which case the current map need to be reloaded, so it needs to be added to the list of packages if not already in

First, update will not use it and act on the whole workspace instead
Second, it fails if provided multiple file paths (which is the case when called from a new UE5.1 UI to Sync the whole workspace)
The previous task 1001351 was only about the "SyncAll" for a regular workspace
but the implementation introduced a regression since it was also used on partial workspace, while "cm partial update" doesn't accept --xml
…filename

Doesn't create a file not write text to it
Else it was cluttering the Saved/Logs folder with Plastic-Temp files
…itor

In order to access the corresponding umap asset package to be reloaded at the end of the workspace update
@SRombautsU SRombautsU self-assigned this Nov 18, 2022
in which case the current map need to be reloaded, so it needs to be added to the list of packages if not already in

(assets that are parts of a map in the new One File Per Actor (OFPA) in UE5 are __ExternalActors__ or __ExternalObjects__)
Copy link

@juliomaqueda juliomaqueda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, @SRombautsU! Please, checkout the review comments.

@SRombautsU SRombautsU marked this pull request as draft November 21, 2022 14:58
@SRombautsU SRombautsU marked this pull request as ready for review November 21, 2022 15:07
@SRombautsU SRombautsU force-pushed the 1002363-update-workspace-reload-map branch 2 times, most recently from e0421b2 to d1e8466 Compare November 22, 2022 13:08
In this case, these assets were not loaded before the operation so they are not yet in memory, so we can not search for them in the list of Packages!
We have to do the search on the list of files updated by source control, that is, on strings containing absolute file paths instead of internal unreal relative path /Game
@SRombautsU SRombautsU force-pushed the 1002363-update-workspace-reload-map branch from d1e8466 to 086dde0 Compare November 22, 2022 13:11
@juliomaqueda juliomaqueda merged commit d0af9d6 into master Nov 22, 2022
@juliomaqueda juliomaqueda deleted the 1002363-update-workspace-reload-map branch November 22, 2022 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants