UNPKG

lingo3d

Version:

Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor

18 lines 827 B
import { PropertyBinding } from "three"; import { getFoundManager } from "../display/core/utils/getFoundManager"; import { indexMeshChildrenNames } from "./indexMeshChildrenNames"; import computeOnce2WithData from "./utils/computeOnce2WithData"; export default computeOnce2WithData((loadedObject3d, name, data) => { const result = []; if (!name) { for (const child of indexMeshChildrenNames(loadedObject3d).values()) result.push(getFoundManager(child, data.owner)); return result; } const sanitized = PropertyBinding.sanitizeNodeName(name); for (const child of indexMeshChildrenNames(loadedObject3d).values()) child.name.startsWith(sanitized) && result.push(getFoundManager(child, data.owner)); return result; }); //# sourceMappingURL=findAllMeshes.js.map