Przeglądaj źródła

Merge branch 'patch-1' of https://github.com/mcauer/three.js into dev

Mr.doob 11 lat temu
rodzic
commit
c135af2ec9
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      examples/js/loaders/ctm/ctm.js

+ 1 - 1
examples/js/loaders/ctm/ctm.js

@@ -630,7 +630,7 @@ CTM.Stream.prototype.readString = function(){
 
   this.offset += len;
 
-  return this.data.subarray(this.offset - len, len);
+  return String.fromCharCode.apply(null,this.data.subarray(this.offset - len, this.offset));
 };
 
 CTM.Stream.prototype.readArrayInt32 = function(array){