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

fix ply and stl exports #1141

Merged
merged 4 commits into from
Nov 29, 2023
Merged

fix ply and stl exports #1141

merged 4 commits into from
Nov 29, 2023

Conversation

Irev-Dev
Copy link
Collaborator

@Irev-Dev Irev-Dev commented Nov 29, 2023

Uses latest kittycad.ts to fix app export issues.
Resolves #1140

Copy link

vercel bot commented Nov 29, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview Nov 29, 2023 2:31am

<>
<option value="ascii">ascii</option>
<option value="binary">binary</option>
</>
)}
{type === 'stl' && (
{type === 'ply' && (
<>
<option value="ascii">ascii</option>
<option value="binary_little_endian">
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This looked like an existing bug where we were giving wrong options for stl and ply

@@ -86,6 +86,9 @@ export const ExportButton = ({ children, className }: ExportButtonProps) => {
// Set the storage type.
values.storage = storage
}
if (values.type === 'ply' || values.type === 'stl') {
values.selection = { type: 'default_scene' }
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@jessfraz @alteous is hardcoding this to 'default_scene' okay for ply and stl?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes that's what I'd do

@Irev-Dev
Copy link
Collaborator Author

lgtm

@Irev-Dev Irev-Dev merged commit 58d1303 into main Nov 29, 2023
1 of 2 checks passed
@Irev-Dev Irev-Dev deleted the kurt-fix-stl-ply-export-1140 branch November 29, 2023 02:24
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.

STL and PLY exports broken
2 participants