Procházet zdrojové kódy

BufferGeometry.setIndex: Improve type definition and docs

martinRenou před 5 roky
rodič
revize
367bca8cfd
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      src/core/BufferGeometry.d.ts

+ 2 - 2
src/core/BufferGeometry.d.ts

@@ -48,8 +48,8 @@ export class BufferGeometry extends EventDispatcher {
 	userData: {[key: string]: any};
 	isBufferGeometry: boolean;
 
-	getIndex(): BufferAttribute;
-	setIndex( index: BufferAttribute | number[] ): void;
+	getIndex(): BufferAttribute | null;
+	setIndex( index: BufferAttribute | number[] | null ): void;
 
 	setAttribute( name: string, attribute: BufferAttribute | InterleavedBufferAttribute ): BufferGeometry;
 	getAttribute( name: string ): BufferAttribute | InterleavedBufferAttribute;