Skip to content

Commit

Permalink
fix: skeleton & skin inspect panel display
Browse files Browse the repository at this point in the history
  • Loading branch information
knoxHuang committed Dec 10, 2024
1 parent c1d5f01 commit f2e7212
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion cocos/spine/skeleton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,20 @@
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,
displayName,
override,
displayOrder,
editable,
tooltip,
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 +386,7 @@ export class Skeleton extends UIRenderer {
/**
* @engineInternal
*/
@visible(true)
@type(DefaultSkinsEnum)
get _defaultSkinIndex (): number {
if (this.skeletonData) {
Expand Down Expand Up @@ -422,6 +436,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 f2e7212

Please sign in to comment.