UNPKG

lingo3d

Version:

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

15 lines 704 B
import { PropertyBinding } from "three"; import computeOnce2 from "./utils/computeOnce2"; import { getFoundManager } from "../display/core/utils/getFoundManager"; import { indexMeshChildrenNames } from "./indexMeshChildrenNames"; export default computeOnce2((self, name) => { if (!name) { const [first] = indexMeshChildrenNames(self.$loadedObject3d).values(); return getFoundManager(first, self); } const sanitized = PropertyBinding.sanitizeNodeName(name); for (const child of indexMeshChildrenNames(self.$loadedObject3d).values()) if (child.name.startsWith(sanitized)) return getFoundManager(child, self); }); //# sourceMappingURL=findFirstMesh.js.map