File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ VMTLoader.prototype = {
45
45
// TODO: Fix this url use and follow the "path" pattern of other loaders
46
46
parse : function ( string , url ) {
47
47
48
- let type = null ;
48
+ let type = '' ;
49
49
let root = null ;
50
50
const objects = [ ] ;
51
51
let currData = '' ;
@@ -66,7 +66,11 @@ VMTLoader.prototype = {
66
66
}
67
67
68
68
objects . push ( newObj ) ;
69
- if ( root === null ) root = newObj ;
69
+ if ( root === null ) {
70
+
71
+ root = newObj ;
72
+
73
+ }
70
74
71
75
currData = '' ;
72
76
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ const VTFLoader = function ( manager ) {
24
24
VTFLoader . prototype = Object . create ( CompressedTextureLoader . prototype ) ;
25
25
VTFLoader . prototype . constructor = VTFLoader ;
26
26
27
- VTFLoader . prototype . parse = function ( buffer , loadMipmaps ) {
27
+ VTFLoader . prototype . parse = function ( buffer ) {
28
28
29
29
function bgrToRgb ( buffer , stride ) {
30
30
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ VVDLoader.prototype = {
48
48
49
49
// https://github.com/ValveSoftware/source-sdk-2013/blob/0d8dceea4310fde5706b3ce1c70609d72a38efdf/sp/src/public/studio.h#L398
50
50
const MAX_NUM_LODS = 8 ;
51
- const MAX_NUM_BONES_PER_VERT = 3 ;
51
+ // const MAX_NUM_BONES_PER_VERT = 3;
52
52
53
53
// struct vertexFileHeader_t
54
54
function parseHeader ( buffer ) {
You can’t perform that action at this time.
0 commit comments