1
0
Эх сурвалжийг харах

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

alvarosabu 3 сар өмнө
parent
commit
379a47a8a2

+ 1 - 1
src/devtools/inspectorHandlers.ts

@@ -132,7 +132,7 @@ export function buildContextGraph(
   }
   }
 
 
   // Generate UUID only on the first call (for TresContext)
   // 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)
   visited.add(object)