mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-18 10:01:48 +00:00
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:
parent
a269b13a2d
commit
59757c3be5
1 changed files with 11 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue