Skip to content

Commit aa01140

Browse files
committed
updates
1 parent fecd2a0 commit aa01140

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

src/VMTLoader.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ VMTLoader.prototype = {
4545
// TODO: Fix this url use and follow the "path" pattern of other loaders
4646
parse: function ( string, url ) {
4747

48-
let type = null;
48+
let type = '';
4949
let root = null;
5050
const objects = [];
5151
let currData = '';
@@ -66,7 +66,11 @@ VMTLoader.prototype = {
6666
}
6767

6868
objects.push( newObj );
69-
if ( root === null ) root = newObj;
69+
if ( root === null ) {
70+
71+
root = newObj;
72+
73+
}
7074

7175
currData = '';
7276

src/VTFLoader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const VTFLoader = function ( manager ) {
2424
VTFLoader.prototype = Object.create( CompressedTextureLoader.prototype );
2525
VTFLoader.prototype.constructor = VTFLoader;
2626

27-
VTFLoader.prototype.parse = function ( buffer, loadMipmaps ) {
27+
VTFLoader.prototype.parse = function ( buffer ) {
2828

2929
function bgrToRgb( buffer, stride ) {
3030

src/VVDLoader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ VVDLoader.prototype = {
4848

4949
// https://github.com/ValveSoftware/source-sdk-2013/blob/0d8dceea4310fde5706b3ce1c70609d72a38efdf/sp/src/public/studio.h#L398
5050
const MAX_NUM_LODS = 8;
51-
const MAX_NUM_BONES_PER_VERT = 3;
51+
// const MAX_NUM_BONES_PER_VERT = 3;
5252

5353
// struct vertexFileHeader_t
5454
function parseHeader( buffer ) {

0 commit comments

Comments
 (0)