3D Floor Mode: fixed a problem where the previous state of linedef arguments were not preserved for undo snapshots. Fixes #967

This commit is contained in:
biwa 2023-12-02 22:16:12 +01:00
parent 124d87129d
commit 6d5098a075

View file

@ -225,10 +225,10 @@ namespace CodeImp.DoomBuilder.ThreeDFloorMode
sd.SetTextureMid(bordertexture);
if (sd.Line.Action == 160)
{
sd.Line.Args[1] = type;
sd.Line.Args[2] = flags;
sd.Line.Args[3] = alpha;
{
// We need to update the linedef's args, but we can't do it directly because otherwise their state will not be saved for the undo snapshot,
// so we're using the linedef's update method
sd.Line.Update(sd.Line.GetFlags(), sd.Line.Activate, sd.Line.Tags, sd.Line.Action, new int[] { sd.Line.Args[0], type, flags, alpha, sd.Line.Args[4] });
}
}
}