Skip to content

Commit

Permalink
fix(GUI): fix setImageType of ImageGroup (Orillusion#208)
Browse files Browse the repository at this point in the history
fix error of function setImageType.
  • Loading branch information
hellmor authored Jun 6, 2023
1 parent 661a7f9 commit ed4f248
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/gui/uiComponents/UIImageGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class UIImageGroup extends UIRenderAble {
for (let i = 0; i < from._count; i++) {
this.setSprite(i, from.getSprite(i));
this.setColor(i, from.getColor(i));
this.setImageType(from.getImageType(i), i);
this.setImageType(i, from.getImageType(i));
}
return this;
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/entities/Object3D.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export class Object3D extends Entity {
* @param ret List of incoming T
* @param includeInactive Whether to include invisible objects, default to false
* @return {*} {T}
* @memberof ELPObject3D
* @memberof Object3D
*/
public getComponentsExt<T extends IComponent>(c: Ctor<T>, ret?: T[], includeInactive?: boolean): T[] {
ret ||= [];
Expand Down

0 comments on commit ed4f248

Please sign in to comment.