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 "Quick Fix" for BUFFER_VIEW_TARGET_MISSING #240

Merged
merged 10 commits into from
Apr 20, 2022
Merged

Conversation

emackey
Copy link
Member

@emackey emackey commented Apr 7, 2022

I'm not entirely certain of the utility of this vs. the novelty, but I've added simple logic for a "Quick Fix" of BUFFER_VIEW_TARGET_MISSING.

@lexaknyazev I hope the logic here isn't too simplistic for what it's doing. It expects BUFFER_VIEW_TARGET_MISSING to have been issued on either a primitive attribute or a primitive's indices, and then expects the value at that JSON pointer to be the ID of a valid accessor with a bufferView ID included, and expects that bufferView to be in need of a target of type determined by whether the original key was indices or not, and inserts the value there.

QuickFixAddTarget

This now offers an option to fix all bufferViews in the file.

There is an additional QuickFix for ACCESSOR_JOINTS_USED_ZERO_WEIGHT.

The README has been updated to explain the Quick Fixes.

@emackey emackey marked this pull request as ready for review April 20, 2022 01:26
@emackey
Copy link
Member Author

emackey commented Apr 20, 2022

I'm fairly confident in this now, so I'm merging it. If anyone finds problems, file a new issue please.

@emackey emackey merged commit 8eb7dae into master Apr 20, 2022
@emackey emackey deleted the quick-fix-target branch April 20, 2022 20:16
@emackey
Copy link
Member Author

emackey commented Apr 21, 2022

This is now published as glTF Tools v2.3.14.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant