提交 3abec128 编写于 作者: T Takahiro

Accept primitive.indices=0 in GLTFLoader

上级 bffb7ac4
......@@ -1632,7 +1632,7 @@ THREE.GLTF2Loader = ( function () {
}
if ( primitive.indices ) {
if ( primitive.indices !== undefined ) {
geometry.setIndex( dependencies.accessors[ primitive.indices ] );
......@@ -1682,7 +1682,7 @@ THREE.GLTF2Loader = ( function () {
var meshNode;
if ( primitive.indices ) {
if ( primitive.indices !== undefined ) {
geometry.setIndex( dependencies.accessors[ primitive.indices ] );
......
......@@ -1644,7 +1644,7 @@ THREE.GLTFLoader = ( function () {
}
if ( primitive.indices ) {
if ( primitive.indices !== undefined ) {
geometry.setIndex( dependencies.accessors[ primitive.indices ] );
......@@ -1694,7 +1694,7 @@ THREE.GLTFLoader = ( function () {
var meshNode;
if ( primitive.indices ) {
if ( primitive.indices !== undefined ) {
geometry.setIndex( dependencies.accessors[ primitive.indices ] );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册