mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-31 04:40:55 +00:00
Fixed a bug where pasting texture offsets in UDMF configurations without support for local sidedef texture offset (like the Eternity UDMF configuration) didn't work. Fixes #538
This commit is contained in:
parent
2abcbfffab
commit
a99d5c239b
1 changed files with 2 additions and 2 deletions
|
@ -1255,7 +1255,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
public virtual void OnPasteTextureOffsets()
|
||||
{
|
||||
mode.CreateUndo("Paste texture offsets");
|
||||
if(General.Map.UDMF)
|
||||
if(General.Map.UDMF && General.Map.Config.UseLocalSidedefTextureOffsets)
|
||||
{
|
||||
SetTextureOffsetX(BuilderPlug.Me.CopiedOffsets.X);
|
||||
SetTextureOffsetY(BuilderPlug.Me.CopiedOffsets.Y);
|
||||
|
@ -1298,7 +1298,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
public virtual void OnCopyTextureOffsets()
|
||||
{
|
||||
//mxd
|
||||
BuilderPlug.Me.CopiedOffsets = General.Map.UDMF ? GetTextureOffset() : new Point(Sidedef.OffsetX, Sidedef.OffsetY);
|
||||
BuilderPlug.Me.CopiedOffsets = (General.Map.UDMF && General.Map.Config.UseLocalSidedefTextureOffsets) ? GetTextureOffset() : new Point(Sidedef.OffsetX, Sidedef.OffsetY);
|
||||
mode.SetActionResult("Copied texture offsets " + BuilderPlug.Me.CopiedOffsets.X + ", " + BuilderPlug.Me.CopiedOffsets.Y + ".");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue