mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-17 01:22:18 +00:00
Fixed, Visual mode: sector geometry was not updated after changing sector brightness under a 3D floor.
This commit is contained in:
parent
0f7aa9f827
commit
f228648b12
1 changed files with 9 additions and 1 deletions
|
@ -387,12 +387,20 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
{
|
||||
// This floor is part of 3D-floor
|
||||
if(level.sector != Sector.Sector)
|
||||
((BaseVisualSector)mode.GetVisualSector(level.sector)).Floor.OnChangeTargetBrightness(up);
|
||||
{
|
||||
BaseVisualSector vs = (BaseVisualSector)mode.GetVisualSector(level.sector);
|
||||
vs.Floor.OnChangeTargetBrightness(up);
|
||||
vs.UpdateSectorGeometry(true);
|
||||
}
|
||||
// This is actual floor of a sector with extrafloors
|
||||
else if(Sector.ExtraFloors.Count > 0 && !Sector.ExtraFloors[0].ExtraFloor.Floor.restrictlighting && !Sector.ExtraFloors[0].ExtraFloor.Floor.disablelighting)
|
||||
{
|
||||
Sector.ExtraFloors[0].OnChangeTargetBrightness(up);
|
||||
}
|
||||
else
|
||||
{
|
||||
base.OnChangeTargetBrightness(up);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue