Skip to content

Commit

Permalink
fix(cientos): added default props to orbit controls
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Mar 6, 2023
1 parent e38e699 commit 68d8673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cientos/src/core/OrbitControls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ watch(controls, value => {
<TresOrbitControls
v-if="state.camera && state.renderer"
ref="controls"
:args="[unref(state.camera), state.renderer?.domElement]"
:args="[unref(state.camera) || camera, state.renderer?.domElement || domElement]"
:enabling-dampling="enableDamping"
/>
</template>

0 comments on commit 68d8673

Please sign in to comment.