mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
fix: keys
This commit is contained in:
1 parent
545b655d4e
commit
8b6610151e
9 files changed
+68
-44
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import type { MeshProps, Object3DProps } from '@react-three/fiber';
|
||||
import type { GroupProps, MeshProps } from '@react-three/fiber';
|
||||
import type { ReactNode } from 'react';
|
||||
import { Mesh, Object3D } from 'three';
|
||||
|
||||
@@ -6,11 +6,7 @@ export function jsxTree(
|
||||
node: Object3D,
|
||||
mergers?: {
|
||||
mesh?: (mesh: Mesh, props: MeshProps, key: string) => ReactNode;
|
||||
group?: (
|
||||
object3d: Object3D,
|
||||
props: Object3DProps,
|
||||
key: string,
|
||||
) => ReactNode;
|
||||
group?: (object3d: Object3D, props: GroupProps, key: string) => ReactNode;
|
||||
},
|
||||
): ReactNode {
|
||||
if (node instanceof Mesh) {
|
||||
|
||||
Reference in new issue
Block a user