Fixed: changing brightness of upper/lower/middle sidedef did not update the whole sidedef brightness until 3D mode restart

This commit is contained in:
ZZYZX 2017-02-09 15:20:39 +02:00
parent cafd1a6f4e
commit fbbfaad579

View file

@ -1477,8 +1477,12 @@ namespace CodeImp.DoomBuilder.BuilderModes
Tools.UpdateLightFogFlag(Sidedef);
mode.SetActionResult("Changed wall brightness to " + newlight + ".");
// Update this part only
this.Setup();
// Update this part only
//this.Setup();
// [ZZ] why the hell was maxed updating only this part? sidedef change is global per sidedef, not only upper/lower/middle part.
// find this sidedef in sector, update all parts.
VisualSidedefParts parts = Sector.GetSidedefParts(Sidedef);
parts.SetupAllParts();
}
else if(!Sector.Changed)
{