Sound Environment Mode: fixed a crash that happened when exiting Draw Lines Mode with the "edit" action and returning to Sound Environment Mode. Fixes #755

This commit is contained in:
biwa 2022-07-02 19:25:10 +02:00
parent a269b13a2d
commit 59757c3be5

View file

@ -219,9 +219,20 @@ namespace CodeImp.DoomBuilder.SoundPropagationMode
} }
} }
protected override void OnEditBegin()
{
base.OnEditBegin();
editpressed = true;
}
//mxd. Show Reverb selector dialog or add a new sound environment thing //mxd. Show Reverb selector dialog or add a new sound environment thing
protected override void OnEditEnd() protected override void OnEditEnd()
{ {
// Edit pressed in this mode?
if (!editpressed)
return;
if(highlightedthing != null) if(highlightedthing != null)
{ {
ReverbsPickerForm form = new ReverbsPickerForm(highlightedthing); ReverbsPickerForm form = new ReverbsPickerForm(highlightedthing);