Made the extension mechanism in r3f explicit

This commit is contained in:
Aria Minaei 2021-09-05 23:24:53 +02:00
parent 2605401e06
commit 7af470a053
4 changed files with 26 additions and 24 deletions

View file

@ -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'