Explorar o código

Reapply fix AWDLoader drawcall conversion after merge

dubejf %!s(int64=10) %!d(string=hai) anos
pai
achega
81533ee52f
Modificáronse 1 ficheiros con 1 adicións e 5 borrados
  1. 1 5
      examples/js/loaders/AWDLoader.js

+ 1 - 5
examples/js/loaders/AWDLoader.js

@@ -699,11 +699,7 @@
 						attrib = new THREE.BufferAttribute( buffer, 1 );
 						geom.addAttribute( 'index', attrib );
 
-						geom.offsets.push({
-							start: 0,
-							index: 0,
-							count: str_len/2
-						});
+						geom.addDrawCall( 0, str_len / 2, 0 );
 
 						idx = 0;