Skip to content

Commit 039798c

Browse files
authored
fix(FaceControls): overridable facemesh children (#2258)
1 parent 18f398a commit 039798c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/web/FaceControls.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ export const FaceControls = /* @__PURE__ */ forwardRef<FaceControlsApi, FaceCont
284284

285285
<Facemesh
286286
ref={facemeshApiRef}
287+
children={<meshNormalMaterial side={THREE.DoubleSide} />}
287288
{...facemesh}
288289
points={points}
289290
depth={depth}
@@ -296,9 +297,7 @@ export const FaceControls = /* @__PURE__ */ forwardRef<FaceControlsApi, FaceCont
296297
debug={debug}
297298
rotation-z={Math.PI}
298299
visible={debug}
299-
>
300-
<meshBasicMaterial side={THREE.DoubleSide} />
301-
</Facemesh>
300+
/>
302301
</FaceControlsContext.Provider>
303302
)
304303
}

0 commit comments

Comments
 (0)