lingo3d
Version:
Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor
18 lines • 805 B
JavaScript
import { PropertyBinding } from "three";
import { getFoundManager } from "../display/core/utils/getFoundManager";
import { indexChildrenNames } from "./indexChildrenNames";
import computeOnce2WithData from "./utils/computeOnce2WithData";
export default computeOnce2WithData((loadedObject3d, name, data) => {
const result = [];
if (!name) {
for (const child of indexChildrenNames(loadedObject3d).values())
result.push(getFoundManager(child, data.owner));
return result;
}
const sanitized = PropertyBinding.sanitizeNodeName(name);
for (const child of indexChildrenNames(loadedObject3d).values())
child.name.startsWith(sanitized) &&
result.push(getFoundManager(child, data.owner));
return result;
});
//# sourceMappingURL=findAll.js.map