|
@@ -2362,12 +2362,18 @@ var GLTFLoader = ( function () {
|
|
|
var min = accessor.min;
|
|
|
var max = accessor.max;
|
|
|
|
|
|
+ // glTF requires 'min' and 'max', but VRM (which extends glTF) currently ignores that requirement.
|
|
|
+
|
|
|
if ( min !== undefined && max !== undefined ) {
|
|
|
|
|
|
box.set(
|
|
|
new Vector3( min[ 0 ], min[ 1 ], min[ 2 ] ),
|
|
|
new Vector3( max[ 0 ], max[ 1 ], max[ 2 ] ) );
|
|
|
|
|
|
+ } else {
|
|
|
+
|
|
|
+ return;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
} else {
|
|
@@ -2392,6 +2398,8 @@ var GLTFLoader = ( function () {
|
|
|
var min = accessor.min;
|
|
|
var max = accessor.max;
|
|
|
|
|
|
+ // glTF requires 'min' and 'max', but VRM (which extends glTF) currently ignores that requirement.
|
|
|
+
|
|
|
if ( min !== undefined && max !== undefined ) {
|
|
|
|
|
|
// we need to get max of absolute components because target weight is [-1,1]
|