Преглед изворни кода

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

Mr.doob пре 11 година
родитељ
комит
c135af2ec9
1 измењених фајлова са 1 додато и 1 уклоњено
  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;
   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){
 CTM.Stream.prototype.readArrayInt32 = function(array){