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

Smart property deletion? #96

Open
zellski opened this issue Mar 26, 2018 · 2 comments
Open

Smart property deletion? #96

zellski opened this issue Mar 26, 2018 · 2 comments

Comments

@zellski
Copy link

zellski commented Mar 26, 2018

I've come to use this plugin more than nearly any other tool in my daily work. Quite often I use it to experimentally strip out some aspect of a .glb. This plugin makes making small edits to the JSON a breeze. Thank you for that.

If there's one feature request I have above others, though, I'd love to be able to delete a buffer/bufferView/accessor, or in fact any glTF property at all, and have all other references in the model automatically update. If I delete accessor 6, all remaining accessor references > 6 all need to decrease by one. Doing this by hand is a chore, and very error prone.

In an ideal world, deleting an accessor that was the only reference to a bufferView could pop up a dialog asking if I additionally want to delete the bufferView that just became an orphan...

@emackey
Copy link
Member

emackey commented Mar 26, 2018

Along the theme of renumbering references, I've also heard feature requests for merging glTF models of parts into a single final object. After some experimentation, I found that two separate glTFs with two separate bin files can easily be merged, and renumbering of references is 99% of the work after concatenating the arrays manually with copy-and-paste. Seems like the ability to edit array members and keep the numbering scheme up-to-date is a great idea. Not sure if/when I'll have enough time to implement such a thing though. Contributions welcome, if you're allowed to sign the CLA.

@zellski
Copy link
Author

zellski commented Mar 26, 2018

Merging two glTF models like that never even crossed my mind, but -- yes, why not? Fascinating.

I will see if I can find someone to rope in for a contribution. I'm neglecting my own open-source commitments already. :)

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

No branches or pull requests

2 participants