Skip to content
This repository has been archived by the owner on Apr 5, 2023. It is now read-only.

Commit

Permalink
Rename debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
FarazzShaikh committed May 1, 2022
1 parent 7eed7de commit d1d920f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions examples/example-configurator/src/Monkey.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Auto-generated by: https://github.com/pmndrs/gltfjsx

import React, { useState } from 'react'
import { useGLTF, TransformControls, OrbitControls, useTexture } from '@react-three/drei'
import { DebugLayerMaterial } from 'lamina/debug'
import { LaminaDebugger } from 'lamina/debug'
import * as LAYERS from 'lamina'
import { button, useControls } from 'leva'
import { Texture } from 'lamina'
Expand Down Expand Up @@ -57,9 +57,9 @@ export default function Monkey() {
<TransformControls ref={transformControls}>
<group scale={0.1} rotation={[0, -Math.PI / 2, Math.PI / 4]}>
<mesh matrixAutoUpdate geometry={nodes.Suzanne.geometry} rotation-y={Math.PI / 2} scale={30}>
<DebugLayerMaterial>
<LaminaDebugger>
<InitialMaterial>{layers}</InitialMaterial>
</DebugLayerMaterial>
</LaminaDebugger>
</mesh>
</group>
</TransformControls>
Expand Down
2 changes: 1 addition & 1 deletion src/core/debugger/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { downloadObjectAsJson, serializedLayersToJSX } from '../../utils/ExportU
import useExports from './useExports'
import useAttach from './useAttach'

export const DebugLayerMaterial = React.forwardRef<
export const LaminaDebugger = React.forwardRef<
LayerMaterialType,
React.PropsWithChildren<LayerMaterialProps & Omit<AllMaterialProps, 'color'>>
>(({ children, ...props }, forwardRef) => {
Expand Down

0 comments on commit d1d920f

Please sign in to comment.