Skip to content
This repository was archived by the owner on Feb 1, 2026. It is now read-only.

Commit fd5cbd9

Browse files
committed
refactor(inspector): remove unused import in Tree component and improve type safety in scene-graph component
1 parent adc6c34 commit fd5cbd9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

client/components/inspector/Tree.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { computed, ref, watch } from 'vue'
2+
import { computed, ref } from 'vue'
33
import type { InspectorNode } from '~/client/types'
44
import { copyPath, copyProp, copyPropAsArray, copyValue, copyValueAsArray, copyValueAsJSON, copyValueAsVector3, copyValueAsEuler, copyValueAsQuaternion } from '~/utils/clipboard'
55

client/components/scene-graph/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const setValueByPath = (obj: unknown, path: string, value: unknown): void => {
9090
current[finalKey] = isHexString(value) ? new Color(value) : value
9191
9292
// Check if this is a camera and update projection matrix if needed
93-
const rootObj = obj as any
93+
const rootObj = obj as TresObject
9494
if (rootObj.isCamera && isCameraProjectionProperty(path)) {
9595
rootObj.updateProjectionMatrix()
9696
}

0 commit comments

Comments
 (0)