refactor: 完善材质系统相关代码
- 修复 node-actions.ts 中 forEach 返回值 lint 警告 - 更新材质 schema 定义和渲染器 - wall-cutout.tsx 材质颜色保留修复
This commit is contained in:
@@ -52,9 +52,7 @@ export function cloneSceneGraph(sceneGraph: SceneGraph): SceneGraph {
|
||||
|
||||
// Remap children array (walls, levels, buildings, sites, items can have children)
|
||||
if ('children' in clonedNode && Array.isArray(clonedNode.children)) {
|
||||
;(clonedNode as Record<string, unknown>).children = (
|
||||
clonedNode.children as string[]
|
||||
)
|
||||
;(clonedNode as Record<string, unknown>).children = (clonedNode.children as string[])
|
||||
.map((childId) => idMap.get(childId))
|
||||
.filter((id): id is string => id !== undefined)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user