mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-22 03:41:47 +00:00
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:
parent
124d87129d
commit
6d5098a075
1 changed files with 4 additions and 4 deletions
|
@ -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] });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue