|
@@ -24,7 +24,7 @@ const COLOR_KEYS = ['r', 'g', 'b']
|
|
|
*/
|
|
|
export function useInstanceCreator(prefix: string) {
|
|
|
const { /* logMessage, */ logError } = useLogger()
|
|
|
-
|
|
|
+ const { pushCamera } = useCamera()
|
|
|
/**
|
|
|
* Process props to `.setAttribute` on instance.
|
|
|
*
|
|
@@ -167,8 +167,8 @@ export function useInstanceCreator(prefix: string) {
|
|
|
return
|
|
|
} else {
|
|
|
const vNodeType = ((vnode.type as TresVNodeType).name as string).replace(prefix, '')
|
|
|
- const { catalogue: fallback } = useCatalogue()
|
|
|
- const catalogue = inject<Ref<TresCatalogue>>('catalogue') || fallback
|
|
|
+
|
|
|
+ const catalogue = inject<Ref<TresCatalogue>>('catalogue')
|
|
|
|
|
|
// check if args prop is defined on the vnode
|
|
|
let internalInstance
|
|
@@ -265,7 +265,6 @@ export function useInstanceCreator(prefix: string) {
|
|
|
const { onLoop } = useRenderLoop()
|
|
|
const scene = state.scene
|
|
|
const raycaster = state.raycaster
|
|
|
- const { pushCamera } = useCamera()
|
|
|
|
|
|
let instance = createInstance(threeObj, attrs, slots)
|
|
|
processProps(attrs, instance)
|