KittyCAD / modeling-app

The KittyCAD modeling app.
https://kittycad.io/modeling-app/download
MIT License
429 stars 37 forks source link

Nadro/adhoc/enter sketch mode bug fix #4529

Closed nadr0 closed 1 week ago

nadr0 commented 1 week ago

closes https://github.com/KittyCAD/modeling-app/issues/4524

Bug

https://github.com/user-attachments/assets/c2a5f9d2-d27d-4c2e-9721-ce946c6f0cdc

When you click in a specific timing window you can brick the ray casting into the threejs scene. Josh reported this bug.

Root cause

The three.js intersection plane and draft point groups were not being properly created. This means that the raycasting code on the plane to pick the points would return an empty array and say nothing was intersected.

Issues

Fixes

Future issues

I can still recreate the issue but what is happening is the system appears to buffer a bunch of clicks then render them all at once then goes back to normal.

I can attempt to fix this in another PR because they are two separate issues. The original bug prevented you from clicking points. This new bug is a delay in the rendering of the mouse clicks.

qa-wolf[bot] commented 1 week ago

QA Wolf here! As you write new code it's important that your test coverage is keeping up. Click here to request test coverage for this PR!

vercel[bot] commented 1 week ago

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

Name Status Preview Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview Nov 22, 2024 3:50pm