Explorar el Código

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

Mr.doob hace 11 años
padre
commit
c135af2ec9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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){