Skip to content

GLTF: Unify logic for encoding buffers during export#120652

Draft
aaronfranke wants to merge 2 commits into
godotengine:masterfrom
aaronfranke:gltf-unify-encode-buffers
Draft

GLTF: Unify logic for encoding buffers during export#120652
aaronfranke wants to merge 2 commits into
godotengine:masterfrom
aaronfranke:gltf-unify-encode-buffers

Conversation

@aaronfranke

Copy link
Copy Markdown
Member

Draft because I built this PR on top of PR #120519, so that has to be merged first.

The logic for encoding glTF buffers when exporting a glTF from Godot is currently duplicated, with one function for saving to text-based .gltf (_encode_buffer_bins), and one function for saving to binary .glb (_encode_buffer_glb).

The code duplication alone is not problematic itself, in that it's not causing any bugs, but it does hinder future refactoring efforts I am working on for glTF 2.1 support and for customizing external data storage. This was a fairly big chunk that I could isolate, so I wanted to submit this as a PR separately before either of those.

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.

1 participant