aWeirdo преди 6 години
родител
ревизия
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];