mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2025-04-22 09:31:14 +00:00
- Fixed a crash when undoing 3D floor plugin actions while being in visual mode. Fixes #309.
This commit is contained in:
parent
4f4f074c3f
commit
b31dec526c
1 changed files with 2 additions and 2 deletions
|
@ -247,7 +247,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
}
|
||||
|
||||
//mxd. Create a floor
|
||||
if(floorRequired)
|
||||
if(floorRequired && ef.Ceiling.sector.IsDisposed == false)
|
||||
{
|
||||
VisualFloor vf = (i < extrafloors.Count) ? extrafloors[i] : new VisualFloor(mode, this);
|
||||
if(vf.Setup(ef.Ceiling, ef))
|
||||
|
@ -285,7 +285,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
}
|
||||
|
||||
//mxd. Create a ceiling
|
||||
if(ceilingRequired)
|
||||
if(ceilingRequired && ef.Floor.sector.IsDisposed == false)
|
||||
{
|
||||
VisualCeiling vc = (i < extraceilings.Count) ? extraceilings[i] : new VisualCeiling(mode, this);
|
||||
if(vc.Setup(ef.Floor, ef))
|
||||
|
|
Loading…
Reference in a new issue