Kaynağa Gözat

Merge branch 'next' into feature/997-refactor-events

alvarosabu 3 ay önce
ebeveyn
işleme
379a47a8a2
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/devtools/inspectorHandlers.ts

+ 1 - 1
src/devtools/inspectorHandlers.ts

@@ -132,7 +132,7 @@ export function buildContextGraph(
   }
 
   // Generate UUID only on the first call (for TresContext)
-  const uuid = depth === 0 ? (object.uuid || Math.random().toString(36).slice(2, 11)) : contextUuid
+  const uuid = depth === 0 ? (object?.scene?.value?.uuid || Math.random().toString(36).slice(2, 11)) : contextUuid
 
   visited.add(object)