Skip to content

Commit 0d75209

Browse files
committed
VIX-3737 Added code to create a Sizing curve for the use-case of loading a sequence created prior to adding the Movement type of Resize
1 parent 2b67a8c commit 0d75209

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Vixen.Modules/Effect/Picture/PictureData.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,12 @@ public void OnDeserialized(StreamingContext c)
116116
if (TilePictures == TilePictures.None)
117117
TilePictures = TilePictures.BlueGlowDots;
118118

119+
// Ensure curves are not null. This use-case can be if loading a sequence prior to introducing the Movement of Resize
120+
if (ScalingCurve == null)
121+
{
122+
ScalingCurve = new Curve(new PointPairList(new[] { 0.0, 100.0 }, new[] { 100.0, 100.0 }));
123+
}
124+
119125
//if one of them is null the others probably are, and if this one is not then they all should be good.
120126
//Try to save some cycles on every load
121127

0 commit comments

Comments
 (0)