Three.js: GLTFLoader doesn't save 'extras' of a root glTF-object

Created on 15 Jun 2018  路  3Comments  路  Source: mrdoob/three.js

Description of the problem

GLTFLoader doesn't save extras that are attached to the root glTF-object to userData

https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#reference-gltf

It merely adds unknown extensions to userData, even though userData could be immediately initialized with json.extras, which is what GLTFLoader should, IMO, do.

https://github.com/mrdoob/three.js/blob/master/examples/js/loaders/GLTFLoader.js#L187

Three.js version
  • [X] Dev
Loaders

Most helpful comment

Sure. I'll do it on Monday.

All 3 comments

Good catch! Would you like to make PR?

Sure. I'll do it on Monday.

16735

Was this page helpful?
0 / 5 - 0 ratings

Related issues

akshaysrin picture akshaysrin  路  3Comments

seep picture seep  路  3Comments

boyravikumar picture boyravikumar  路  3Comments

danieljack picture danieljack  路  3Comments

zsitro picture zsitro  路  3Comments