Skip to content

Commit

Permalink
feat: remove readonly for scene on state context
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Jul 25, 2023
1 parent 3444fa9 commit b6739c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/composables/useTresContextProvider/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { inject, provide, readonly, shallowRef, computed } from 'vue';
import type { ComputedRef, DeepReadonly, MaybeRef, MaybeRefOrGetter, Ref, ShallowRef } from 'vue';

export type TresContext = {
scene: DeepReadonly<ShallowRef<Scene>>;
scene: ShallowRef<Scene>;
camera: ComputedRef<Camera | undefined>;
cameras: DeepReadonly<Ref<Camera[]>>;
renderer: ShallowRef<WebGLRenderer>
Expand Down Expand Up @@ -71,7 +71,7 @@ export function useTresContextProvider({

const toProvide: TresContext = {
sizes,
scene: readonly(localScene),
scene: localScene,
camera,
cameras: readonly(cameras),
renderer,
Expand Down

0 comments on commit b6739c7

Please sign in to comment.