Skip to content

Commit

Permalink
getAnimationAsset returns Asset (#6864)
Browse files Browse the repository at this point in the history
* fixed getAnimationAsset return to be asset

* reverts change as breaking and updates type to match

* Update src/framework/components/anim/component-layer.js

Co-authored-by: Will Eastcott <[email protected]>

* Update src/framework/components/anim/component-layer.js

Co-authored-by: Will Eastcott <[email protected]>

---------

Co-authored-by: Will Eastcott <[email protected]>
  • Loading branch information
kpal81xd and willeastcott committed Aug 5, 2024
1 parent 9147ef5 commit 817487a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/framework/components/anim/component-layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,10 +402,10 @@ class AnimComponentLayer {
}

/**
* Returns the asset that is associated with the given state.
* Returns an object holding the animation asset id that is associated with the given state.
*
* @param {string} stateName - The name of the state to get the asset for.
* @returns {import('../../asset/asset.js').Asset} The asset associated with the given state.
* @returns {{ asset: number }} An object containing the animation asset id associated with the given state.
*/
getAnimationAsset(stateName) {
return this._component.animationAssets[`${this.name}:${stateName}`];
Expand Down

0 comments on commit 817487a

Please sign in to comment.