|
@@ -741,6 +741,7 @@ namespace BansheeEditor
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private State state = State.Normal;
|
|
private State state = State.Normal;
|
|
|
|
|
+ private SerializedSceneObject soState;
|
|
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// Transitions the window into a different state. Caller must validate state transitions.
|
|
/// Transitions the window into a different state. Caller must validate state transitions.
|
|
@@ -804,6 +805,8 @@ namespace BansheeEditor
|
|
|
EditorAnimClipTangents unused;
|
|
EditorAnimClipTangents unused;
|
|
|
clipInfo.Apply(out unused);
|
|
clipInfo.Apply(out unused);
|
|
|
|
|
|
|
|
|
|
+ soState = new SerializedSceneObject(selectedSO, true);
|
|
|
|
|
+
|
|
|
Animation animation = selectedSO.GetComponent<Animation>();
|
|
Animation animation = selectedSO.GetComponent<Animation>();
|
|
|
if (animation != null)
|
|
if (animation != null)
|
|
|
{
|
|
{
|
|
@@ -824,6 +827,9 @@ namespace BansheeEditor
|
|
|
if (animation != null)
|
|
if (animation != null)
|
|
|
animation.EditorStop();
|
|
animation.EditorStop();
|
|
|
|
|
|
|
|
|
|
+ if(soState != null)
|
|
|
|
|
+ soState.Restore();
|
|
|
|
|
+
|
|
|
playButton.Value = false;
|
|
playButton.Value = false;
|
|
|
}
|
|
}
|
|
|
|
|
|