Skip to content

Commit

Permalink
ObjectLoader.parseMaterials: accepts a record of textures not an ar…
Browse files Browse the repository at this point in the history
…ray of them (#300)
  • Loading branch information
Hoodgail authored Dec 23, 2022
1 parent 5604422 commit ef0f721
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/three/src/loaders/ObjectLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class ObjectLoader extends Loader {
// tslint:disable-next-line:no-unnecessary-generics
parseAsync<T extends Object3D>(json: any): Promise<T>;
parseGeometries(json: any): { [key: string]: InstancedBufferGeometry | BufferGeometry }; // Array of BufferGeometry or Geometry or Geometry2.
parseMaterials(json: any, textures: Texture[]): Material[]; // Array of Classes that inherits from Matrial.
parseMaterials(json: any, textures: { [key: string]: Texture }): Material[]; // Array of Classes that inherits from Matrial.
parseAnimations(json: any): AnimationClip[];
parseImages(json: any, onLoad?: () => void): { [key: string]: Source };
parseImagesAsync(json: any): Promise<{ [key: string]: Source }>;
Expand Down

0 comments on commit ef0f721

Please sign in to comment.