lingo3d
Version:
Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor
12 lines • 400 B
JavaScript
import computeOnce from "./utils/computeOnce";
const _getSkeleton = (object) => {
if ("skeleton" in object)
return object.skeleton;
for (const child of object.children) {
const result = _getSkeleton(child);
if (result)
return result;
}
};
export const getSkeleton = computeOnce((object) => _getSkeleton(object));
//# sourceMappingURL=getSkeleton.js.map