Post-UDB-merge fixes

This commit is contained in:
spherallic 2023-10-10 15:53:11 +02:00
parent f4506b22dc
commit e5cbadda91
2 changed files with 6 additions and 2 deletions

View file

@ -566,7 +566,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
}
// Texture offset change
public override void OnChangeTextureOffset(int horizontal, int vertical, bool doSurfaceAngleCorrection)
public override bool OnChangeTextureOffset(int horizontal, int vertical, bool doSurfaceAngleCorrection)
{
if ((General.Map.UndoRedo.NextUndo == null) || (General.Map.UndoRedo.NextUndo.TicketID != undoticket))
undoticket = mode.CreateUndo("Change texture offsets");
@ -602,6 +602,8 @@ namespace CodeImp.DoomBuilder.BuilderModes
//mxd. Update linked effects
SectorData sd = mode.GetSectorDataEx(Sector.Sector);
if (sd != null) sd.Reset(true);
return true;
}
#endregion

View file

@ -269,7 +269,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
}
// Texture offset change
public override void OnChangeTextureOffset(int horizontal, int vertical, bool doSurfaceAngleCorrection)
public override bool OnChangeTextureOffset(int horizontal, int vertical, bool doSurfaceAngleCorrection)
{
if ((General.Map.UndoRedo.NextUndo == null) || (General.Map.UndoRedo.NextUndo.TicketID != undoticket))
undoticket = mode.CreateUndo("Change texture offsets");
@ -305,6 +305,8 @@ namespace CodeImp.DoomBuilder.BuilderModes
//mxd. Update linked effects
SectorData sd = mode.GetSectorDataEx(Sector.Sector);
if (sd != null) sd.Reset(true);
return true;
}
#endregion