Browse Source

Reapply fix AWDLoader drawcall conversion after merge

dubejf 10 năm trước cách đây
mục cha
commit
81533ee52f
1 tập tin đã thay đổi với 1 bổ sung5 xóa
  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;