From 067719c69b2ed08c083131d11679e7027bff8ea0 Mon Sep 17 00:00:00 2001 From: ww-rm Date: Wed, 9 Apr 2025 13:36:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E9=9D=A2=E6=9D=BF=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PropertyGridWrappers/Spine/SpineAnimationWrapper.cs | 6 +++++- SpineViewer/PropertyGridWrappers/Spine/SpineSkinWrapper.cs | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/SpineViewer/PropertyGridWrappers/Spine/SpineAnimationWrapper.cs b/SpineViewer/PropertyGridWrappers/Spine/SpineAnimationWrapper.cs index eda45bd..1d34434 100644 --- a/SpineViewer/PropertyGridWrappers/Spine/SpineAnimationWrapper.cs +++ b/SpineViewer/PropertyGridWrappers/Spine/SpineAnimationWrapper.cs @@ -114,7 +114,11 @@ namespace SpineViewer.PropertyGridWrappers.Spine /// /// 设置 TrackWrapper 属性 AnimationTracks.Track{i} = /// - public void SetTrackWrapper(int i, string value) => Spine.SetAnimation(i, value); + public void SetTrackWrapper(int i, string value) + { + Spine.SetAnimation(i, value); + TypeDescriptor.Refresh(this); + } /// /// 在属性面板悬停可以按轨道顺序显示动画名称 diff --git a/SpineViewer/PropertyGridWrappers/Spine/SpineSkinWrapper.cs b/SpineViewer/PropertyGridWrappers/Spine/SpineSkinWrapper.cs index bbd3460..6b6b653 100644 --- a/SpineViewer/PropertyGridWrappers/Spine/SpineSkinWrapper.cs +++ b/SpineViewer/PropertyGridWrappers/Spine/SpineSkinWrapper.cs @@ -100,7 +100,11 @@ namespace SpineViewer.PropertyGridWrappers.Spine /// /// 设置 SkinWrapper 属性 SkinManager.Skin{i} = /// - public void SetSkinWrapper(int i, string value) => Spine.ReplaceSkin(i, value); + public void SetSkinWrapper(int i, string value) + { + Spine.ReplaceSkin(i, value); + TypeDescriptor.Refresh(this); + } /// /// 在属性面板悬停可以显示已加载的皮肤列表