Chore: Simplified object config in r3f
This commit is contained in:
parent
d416da5a2f
commit
636e7fe82a
2 changed files with 22 additions and 34 deletions
|
@ -11,10 +11,11 @@ import type {
|
|||
} from 'three'
|
||||
import {Vector3} from 'three'
|
||||
import type {EditableType} from '../store'
|
||||
import {getBaseObjectConfig, useEditorStore} from '../store'
|
||||
import {baseSheetObjectType} from '../store'
|
||||
import {useEditorStore} from '../store'
|
||||
import mergeRefs from 'react-merge-refs'
|
||||
import type {$FixMe} from '@theatre/shared/utils/types'
|
||||
import type {ISheetObject} from '../../../../theatre/core/src/sheetObjects/TheatreSheetObject'
|
||||
import type {ISheetObject} from '@theatre/core'
|
||||
|
||||
const log = console.log
|
||||
|
||||
|
@ -57,7 +58,7 @@ const editable = <
|
|||
|
||||
useLayoutEffect(() => {
|
||||
if (!sheet) return
|
||||
const sheetObject = sheet.object(uniqueName, {}, getBaseObjectConfig())
|
||||
const sheetObject = sheet.object(uniqueName, {}, baseSheetObjectType)
|
||||
setSheetObject(sheetObject)
|
||||
|
||||
useEditorStore
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue