aWeirdo 6 лет назад
Родитель
Сommit
8c51f535b1
1 измененных файлов с 1 добавлено и 1 удалено
  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];