Explorar o código

Update scene.ts

aWeirdo %!s(int64=6) %!d(string=hai) anos
pai
achega
8c51f535b1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/scene.ts

+ 1 - 1
src/scene.ts

@@ -2491,7 +2491,7 @@ export class Scene extends AbstractScene implements IAnimatable {
      * @param uniqueId defines the texture's unique id
      * @return the texture or null if none found.
      */
-    public getTextureByUniqueID(uniqueId: number): Nullable<Texture> {
+    public getTextureByUniqueID(uniqueId: number): Nullable<BaseTexture> {
         for (var index = 0; index < this.textures.length; index++) {
             if (this.textures[index].uniqueId === uniqueId) {
                 return this.textures[index];