GLTFLoader: Some glTF models cannot be cloned

Description of the problem

GLTF2 models that are clones do not displayed correctly. This is for a number of reasons

  • the onBeforeRender callback is not copied
  • GLTFShader is not cloned across
  • SkinnedModel skeleton is reinitialised to 0 bones and the source skinnedmodel skeleton is not cloned

http://jsfiddle.net/mn768h35/

Three.js version
  • [X ] Dev
  • r85
Browser
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
OS
  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS
Hardware Requirements (graphics card, VR Device, …)

Author: Fantashit

2 thoughts on “GLTFLoader: Some glTF models cannot be cloned

Comments are closed.