add the ability to edit sketch later

This commit is contained in:
Kurt Hutten IrevDev
2022-12-06 05:40:05 +11:00
parent 847b0b5b28
commit 034c903672
9 changed files with 186 additions and 53 deletions

View File

@ -14,7 +14,7 @@ export const SketchPlane = () => {
if (guiMode.mode !== 'sketch') {
return null
}
if (guiMode.sketchMode !== 'points') {
if (guiMode.sketchMode !== 'points' && guiMode.sketchMode !== 'sketchEdit' ) {
return null
}
@ -38,6 +38,9 @@ export const SketchPlane = () => {
rotation={clickDetectPlaneRotation}
name={sketchGridName}
onClick={(e) => {
if (guiMode.sketchMode !== 'points') {
return
}
const sketchGridIntersection = e.intersections.find(
({ object }) => object.name === sketchGridName
)