Open josh-cloudscape opened 2 years ago
It seems to be fixed by changing the clone method in objects.js
from
let dupe = obj.clone(true)
to
// SkeletonUtils can be copied from https://github.com/mrdoob/three.js/blob/r132/examples/jsm/utils/SkeletonUtils.js
const SkeletonUtils = require("../SkeletonUtils.js");
...
let dupe = SkeletonUtils.clone(obj)
Describe the bug Removing and reloading a 3D object causes it to disconnect from the map. This only seems to occur when:
options.clone
is not set tofalse
)Afterwards moving the map does not move the model position.
To Reproduce
Example![output](https://user-images.githubusercontent.com/107374268/179893116-bdc714de-c135-4e7e-9a1e-71a9e2de37e8.gif)
Additional context
My guess is something in the duplicate function is not quite right? I couldn't see anything obvious but might not have been looking in the right spot.