Parcourir la source

Reapply fix AWDLoader drawcall conversion after merge

dubejf il y a 10 ans
Parent
commit
81533ee52f
1 fichiers modifiés avec 1 ajouts et 5 suppressions
  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;