mylingo3d
Version:
Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor
9 lines • 391 B
JavaScript
import { clone } from "three/examples/jsm/utils/SkeletonUtils";
export const skinnedMeshSet = new WeakSet();
export default (target, noBone, animations = target.animations) => {
const result = noBone ? target.clone() : clone(target);
!noBone && skinnedMeshSet.add(result);
result.animations = animations;
return result;
};
//# sourceMappingURL=cloneSkinnedMesh.js.map