Add missing backside check to clear midtextures action

This commit is contained in:
spherallic 2023-04-25 01:12:06 +02:00
parent 51fa48a160
commit e81270fa47
2 changed files with 6 additions and 3 deletions

View File

@ -1810,9 +1810,12 @@ namespace CodeImp.DoomBuilder.BuilderModes
foreach (Linedef l in selected)
{
l.SetFlag(General.Map.Config.PegMidtextureFlag, false);
if (l.Back != null)
{
l.Front.SetTextureMid("-");
l.Back.SetTextureMid("-");
}
}
// Update cache values
General.Map.IsChanged = true;

View File

@ -378,7 +378,7 @@ clearmidtextures
{
title = "Clear midtextures";
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;
allowmouse = true;
allowscroll = true;