Skip to content

Commit

Permalink
fix skeleton animation & skin inspect panel display (#18016)
Browse files Browse the repository at this point in the history
* fix: skeleton & skin inspect panel display

* refine code
  • Loading branch information
knoxHuang authored Dec 11, 2024
1 parent 0ec0ec3 commit 6a08103
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cocos/spine/skeleton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
THE SOFTWARE.
*/
import { EDITOR_NOT_IN_PREVIEW, JSB } from 'internal:constants';
import { ccclass, executeInEditMode, help, menu, serializable, type, displayName, override, displayOrder, editable, tooltip } from 'cc.decorator';
import { ccclass, executeInEditMode, help, menu, serializable, type, override, displayOrder, editable, visible } from 'cc.decorator';
import { Material, Texture2D } from '../asset/assets';
import { error, logID, warn } from '../core/platform/debug';
import { Enum, EnumType, ccenum } from '../core/value-types/enum';
Expand Down Expand Up @@ -373,6 +373,7 @@ export class Skeleton extends UIRenderer {
/**
* @engineInternal
*/
@visible(true)
@type(DefaultSkinsEnum)
get _defaultSkinIndex (): number {
if (this.skeletonData) {
Expand Down Expand Up @@ -422,6 +423,7 @@ export class Skeleton extends UIRenderer {
/**
* @engineInternal
*/
@visible(true)
@type(SpineDefaultAnimsEnum)
get _animationIndex (): number {
const animationName = EDITOR_NOT_IN_PREVIEW ? this.defaultAnimation : this.animation;
Expand Down

0 comments on commit 6a08103

Please sign in to comment.