Explorar o código

Merge pull request #19277 from sirxemic/fix-cube-texture-mipmaps-type

TS: Fix mipmaps property type for cube textures
Mr.doob %!s(int64=5) %!d(string=hai) anos
pai
achega
9b8d9940fd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/textures/Texture.d.ts

+ 1 - 1
src/textures/Texture.d.ts

@@ -33,7 +33,7 @@ export class Texture extends EventDispatcher {
 	name: string;
 	sourceFile: string;
 	image: any; // HTMLImageElement or ImageData or { width: number, height: number } in some children;
-	mipmaps: ImageData[];
+	mipmaps: any[]; // ImageData[] for 2D textures and CubeTexture[] for cube textures;
 	mapping: Mapping;
 	wrapS: Wrapping;
 	wrapT: Wrapping;