<p dir="auto">When cloning a skeleton, the bones and boneInverses arrays of the cloned skeleton still reference the arrays from the original skeleton. Hence when the original skeleton is animated, the bones on the cloned skeleton are also affected. Is this the intended behavior?</p>
<p dir="auto"></p><div class="Box Box--condensed my-2">
  <div class="Box-header f6">
    <p class="mb-0 text-bold">
      <a href="https://github.com/mrdoob/three.js/blob/c0dbf052eb276e407a0d2ea881b010303859d9cd/src/objects/Skeleton.js#L153">three.js/src/objects/Skeleton.js</a>
    </p>
    <p class="mb-0 color-fg-muted">
         Line 153
      in
      <a data-pjax="true" class="commit-tease-sha" href="/mrdoob/three.js/commit/c0dbf052eb276e407a0d2ea881b010303859d9cd">c0dbf05</a>
    </p>
  </div>
  <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
    <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">

        <tbody><tr class="border-0">
          <td id="L153" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="153"></td>
          <td id="LC153" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-v">Skeleton</span><span class="pl-kos">(</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">bones</span><span class="pl-kos">,</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">boneInverses</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> </td>
        </tr>
    </tbody></table>
  </div>
</div>
<p></p>
<p dir="auto">There are a few things which geometry.clone() doesn't copy a reference to, which it should.</p>
<p dir="auto">.bones<br>
.skinWeights<br>
.skinIndices<br>
.animations<br>
.animation</p>
<p dir="auto">are all left without references to the original, which leads to skinning being broken unless the references to those are manually copied. I think references should be passed as it's less confusing, but I don't think they should be deep copies, or this would lead to mostly wasted memory.</p>