From 180b109a32846aa1cfc25773961794f100e9b676 Mon Sep 17 00:00:00 2001 From: spacejack Date: Sun, 25 Oct 2015 15:08:49 -0400 Subject: [PATCH] Re-added BufferGeometry.addAttribute and .addDrawCall and marked as deprecated. --- threejs/three.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/threejs/three.d.ts b/threejs/three.d.ts index dede64b2d..f0268bd4d 100644 --- a/threejs/three.d.ts +++ b/threejs/three.d.ts @@ -539,7 +539,8 @@ declare module THREE { groups: {start: number, count: number, materialIndex?: number}[] boundingBox: Box3; boundingSphere: BoundingSphere; - + /** Deprecated. This overloaded method is deprecated. */ + addAttribute(name: string, array: any, itemSize: number): any; addAttribute(name: string, attribute: BufferAttribute|InterleavedBufferAttribute): void; getAttribute(name: string): BufferAttribute|InterleavedBufferAttribute; removeAttribute(name: string): void; @@ -547,6 +548,8 @@ declare module THREE { setIndex(index: BufferAttribute): void; getIndex(): BufferAttribute; + /** Deprecated. Use addGroup */ + addDrawCall(start: number, count: number, index: number): void; addGroup(start: number, count: number, materialIndex?: number): void; clearGroups(): void;