xeolabs / xeogl

A WebGL-based 3D engine for technical visualization. Not actively maintained.
http://xeogl.org
Other
1.14k stars 264 forks source link

GTFModel.getJSON checks undefined member property "src" instead of "_src" #170

Closed bradwerth closed 7 years ago

bradwerth commented 7 years ago
Description of the problem

src/models/gltfModel.js line 156 (in _getJSON) tests "this.src" when it should test "test._src".

xeogl version
Browser
OS
Hardware Requirements
xeolabs commented 7 years ago

I just rewrote GLTFModel to support glTF 2 - maybe this fixes things for you. Note that GLTFModel is now no longer part of the xeogl core, and must be loaded as a separate script, like in this example: https://github.com/xeolabs/xeogl/blob/master/examples/importing_gltf_2CylinderEngine.html

So maybe convert or re-export your model as v2.0, and if you still get problems we can reopen this ticket.