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 export_preserialize to the GLTF export process #79623

Merged
merged 1 commit into from
Aug 3, 2023

Conversation

aaronfranke
Copy link
Member

@aaronfranke aaronfranke commented Jul 18, 2023

This PR adds a new extension hook to the GLTF export process, _export_preserialize. This runs each time we serialize to a buffer or file. This allows extension authors to alter the data between converting Godot nodes to the state data, and converting the state data to JSON. This is also the earliest opportunity to read the destination file name and path.

@aaronfranke aaronfranke added this to the 4.x milestone Jul 18, 2023
@aaronfranke aaronfranke requested a review from a team as a code owner July 18, 2023 17:27
@aaronfranke aaronfranke marked this pull request as draft July 18, 2023 18:56
@aaronfranke aaronfranke force-pushed the gltf-export-preserialize branch from 63301f7 to 68c845b Compare July 18, 2023 20:19
@aaronfranke aaronfranke force-pushed the gltf-export-preserialize branch from 68c845b to e8906b5 Compare July 18, 2023 20:20
@aaronfranke aaronfranke marked this pull request as ready for review July 18, 2023 20:26
Copy link
Contributor

@lyuma lyuma left a comment

Choose a reason for hiding this comment

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

Seems straightfoward, and addresses the case of needing to know the filename

@akien-mga akien-mga changed the title Add export_preserialize to the GLTF export process Add export_preserialize to the GLTF export process Aug 3, 2023
@akien-mga akien-mga modified the milestones: 4.x, 4.2 Aug 3, 2023
@akien-mga akien-mga merged commit 1d42504 into godotengine:master Aug 3, 2023
@akien-mga
Copy link
Member

Thanks!

@aaronfranke aaronfranke deleted the gltf-export-preserialize branch August 3, 2023 18:18
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.

3 participants