diff --git a/osu.Game/Beatmaps/ControlPoints/ControlPointGroup.cs b/osu.Game/Beatmaps/ControlPoints/ControlPointGroup.cs index 1f34f3777d..f6eaea0a8c 100644 --- a/osu.Game/Beatmaps/ControlPoints/ControlPointGroup.cs +++ b/osu.Game/Beatmaps/ControlPoints/ControlPointGroup.cs @@ -3,7 +3,9 @@ using System; using System.Linq; +using Newtonsoft.Json; using osu.Framework.Bindables; +using osu.Game.IO.Serialization.Converters; namespace osu.Game.Beatmaps.ControlPoints { @@ -17,8 +19,11 @@ namespace osu.Game.Beatmaps.ControlPoints /// public double Time { get; } + [JsonIgnore] public IBindableList ControlPoints => controlPoints; + [JsonConverter(typeof(BindableListConverter))] + [JsonProperty] private readonly BindableList controlPoints = new BindableList(); public ControlPointGroup(double time) diff --git a/osu.Game/Beatmaps/ControlPoints/ControlPointInfo.cs b/osu.Game/Beatmaps/ControlPoints/ControlPointInfo.cs index 1a15db98e4..0aa431d104 100644 --- a/osu.Game/Beatmaps/ControlPoints/ControlPointInfo.cs +++ b/osu.Game/Beatmaps/ControlPoints/ControlPointInfo.cs @@ -22,9 +22,10 @@ namespace osu.Game.Beatmaps.ControlPoints /// /// All control points grouped by time. /// - [JsonProperty] + [JsonIgnore] public IBindableList Groups => groups; + [JsonProperty] private readonly BindableList groups = new BindableList(); ///