Skip to content

Commit eb088c0

Browse files
author
Don McCurdy
committed
DRACOLoader: Fix three/gltf attribute name mappings.
1 parent 521222b commit eb088c0

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

examples/js/loaders/DRACOLoader.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ THREE.DRACOLoader = function(manager) {
2828
this.nativeAttributeMap = {
2929
'position' : 'POSITION',
3030
'normal' : 'NORMAL',
31-
'color' : 'COLOR',
32-
'uv' : 'TEX_COORD'
31+
'color' : 'COLOR_0',
32+
'uv' : 'TEXCOORD_0',
33+
'uv2' : 'TEXCOORD_1'
3334
};
3435
};
3536

examples/js/loaders/GLTFLoader.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,16 +1136,10 @@ THREE.GLTFLoader = ( function () {
11361136
POSITION: 'position',
11371137
NORMAL: 'normal',
11381138
TEXCOORD_0: 'uv',
1139-
TEXCOORD0: 'uv', // deprecated
1140-
TEXCOORD: 'uv', // deprecated
11411139
TEXCOORD_1: 'uv2',
11421140
COLOR_0: 'color',
1143-
COLOR0: 'color', // deprecated
1144-
COLOR: 'color', // deprecated
11451141
WEIGHTS_0: 'skinWeight',
1146-
WEIGHT: 'skinWeight', // deprecated
11471142
JOINTS_0: 'skinIndex',
1148-
JOINT: 'skinIndex' // deprecated
11491143
};
11501144

11511145
var PATH_PROPERTIES = {
@@ -1939,7 +1933,7 @@ THREE.GLTFLoader = ( function () {
19391933
// Ignore empty accessors, which may be used to declare runtime
19401934
// information about attributes coming from another source (e.g. Draco
19411935
// compression extension).
1942-
return null;
1936+
return Promise.resolve( null );
19431937

19441938
}
19451939

0 commit comments

Comments
 (0)