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

theatre/r3f: Support lines and points in snapshot view #108

Closed

Conversation

donmccurdy
Copy link
Contributor

@donmccurdy donmccurdy commented Mar 25, 2022

glTF files may contain points, lines, line strips, and line loops in addition to triangle meshes. Userland code can register those types with the editable(...) API, but the snapshot view will crash when these types are encountered. This PR attempts to fix that, so these types can be viewed and moved in the snapshot view.

Test model:

primitive_modes.glb.zip

Screen Shot 2022-03-25 at 10 16 09 AM

This contribution is funded by The New York Times.

@CLAassistant
Copy link

CLAassistant commented Mar 25, 2022

CLA assistant check
All committers have signed the CLA.

@netlify
Copy link

netlify bot commented Mar 25, 2022

Deploy Preview for theatrejs-playground failed.

Name Link
🔨 Latest commit 97c7afb
🔍 Latest deploy log https://app.netlify.com/sites/theatrejs-playground/deploys/623f8d825b53861eee1369f2

@AriaMinaei
Copy link
Member

Thanks @donmccurdy!

@AndrewPrifer seems like this can be incorporated into #139?

@AndrewPrifer
Copy link
Contributor

@AriaMinaei Yeah, this is exactly the issue #139 was made for. I'll incorporate these types in the default schema too.

@AndrewPrifer
Copy link
Contributor

Closing in favor of #139, which will incorporate support for points, lines, line loops, and line segments too in the default schema.

@AndrewPrifer
Copy link
Contributor

Thank you @donmccurdy!

@donmccurdy donmccurdy deleted the feat/support-lines-and-points branch May 3, 2022 18:56
@donmccurdy
Copy link
Contributor Author

Awesome, thanks! Will look over #139 soon. :)

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

4 participants