Add missing backside check to clear midtextures action
This commit is contained in:
parent
51fa48a160
commit
e81270fa47
|
@ -1810,9 +1810,12 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
foreach (Linedef l in selected)
|
foreach (Linedef l in selected)
|
||||||
{
|
{
|
||||||
l.SetFlag(General.Map.Config.PegMidtextureFlag, false);
|
l.SetFlag(General.Map.Config.PegMidtextureFlag, false);
|
||||||
|
if (l.Back != null)
|
||||||
|
{
|
||||||
l.Front.SetTextureMid("-");
|
l.Front.SetTextureMid("-");
|
||||||
l.Back.SetTextureMid("-");
|
l.Back.SetTextureMid("-");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Update cache values
|
// Update cache values
|
||||||
General.Map.IsChanged = true;
|
General.Map.IsChanged = true;
|
||||||
|
|
|
@ -378,7 +378,7 @@ clearmidtextures
|
||||||
{
|
{
|
||||||
title = "Clear midtextures";
|
title = "Clear midtextures";
|
||||||
category = "classic";
|
category = "classic";
|
||||||
description = "This removes all midtextures from the selected lines, and removes their Peg Midtexture flag.";
|
description = "This removes all midtextures from all two-sided lines in your selection, and removes their Peg Midtexture flag.";
|
||||||
allowkeys = true;
|
allowkeys = true;
|
||||||
allowmouse = true;
|
allowmouse = true;
|
||||||
allowscroll = true;
|
allowscroll = true;
|
||||||
|
|
Loading…
Reference in New Issue