lingo3d
Version:
Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor
14 lines • 544 B
JavaScript
import { sceneGraphExpand } from "../../../states/useSceneGraphExpanded";
import Model from "../../../display/Model";
import { emitSelectionTarget } from "../../../events/onSelectionTarget";
export default (n, target) => {
if (!(target instanceof Model))
return;
const name = n.toLowerCase();
const found = target.findFirst((childName) => childName.toLowerCase().includes(name));
if (!found)
return;
emitSelectionTarget(found);
sceneGraphExpand(found.outerObject3d);
};
//# sourceMappingURL=search.js.map