Made the extension mechanism in r3f explicit
This commit is contained in:
parent
2605401e06
commit
7af470a053
4 changed files with 26 additions and 24 deletions
|
@ -1,4 +1,9 @@
|
|||
import {editable as e, RefreshSnapshot, Wrapper} from '@theatre/plugin-r3f'
|
||||
import {
|
||||
editable as e,
|
||||
RefreshSnapshot,
|
||||
Wrapper,
|
||||
extension,
|
||||
} from '@theatre/plugin-r3f'
|
||||
import {OrbitControls, Stars} from '@react-three/drei'
|
||||
import {getProject} from '@theatre/core'
|
||||
import React, {Suspense, useState} from 'react'
|
||||
|
@ -7,6 +12,7 @@ import {useGLTF} from '@react-three/drei'
|
|||
import sceneGLB from './scene.glb'
|
||||
import studio from '@theatre/studio'
|
||||
|
||||
studio.extend(extension)
|
||||
studio.initialize()
|
||||
|
||||
document.body.style.backgroundColor = '#171717'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue