Ver código fonte

Bugfix: Fix animation window undo commands complaining about not being serializable

BearishSun 6 anos atrás
pai
commit
03778c7581
2 arquivos alterados com 4 adições e 1 exclusões
  1. 3 0
      Source/EditorManaged/Windows/AnimationWindow.cs
  2. 1 1
      Source/bsf

+ 3 - 0
Source/EditorManaged/Windows/AnimationWindow.cs

@@ -1686,6 +1686,7 @@ namespace bs.Editor
     /// <summary>
     /// Raw data representing a single animation curve.
     /// </summary>
+    [SerializeObject]
     class AnimationCurveState
     {
         public KeyFrame[] keyFrames;
@@ -1695,6 +1696,7 @@ namespace bs.Editor
     /// <summary>
     /// Raw data representing a single animation clip state.
     /// </summary>
+    [SerializeObject]
     class AnimationClipState
     {
         public Dictionary<string, AnimationCurveState[]> curves = new Dictionary<string, AnimationCurveState[]>();
@@ -1704,6 +1706,7 @@ namespace bs.Editor
     /// <summary>
     /// Undo command used in the AnimationWindow.
     /// </summary>
+    [SerializeObject]
     internal class AnimationUndo : UndoableCommand
     {
         private AnimationClipState prevClipState;

+ 1 - 1
Source/bsf

@@ -1 +1 @@
-Subproject commit 9bbac75ca4cc445cd26b435f74465ad91d3e528e
+Subproject commit 3554b908ad7f5ab1aa43164ebabd0bfd0d8aa9d8