Fixed, Sectors Mode, UDMF: "Make Brightness Gradient" action was not working when "Sector Brightness" mode was selected...

This commit is contained in:
MaxED 2015-01-29 12:14:45 +00:00
parent 3575ffc0a3
commit 12203f1701

View file

@ -1699,7 +1699,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
//mxd. Use UDMF light?
string mode = (string)BuilderPlug.Me.MenusForm.GradientModeMenu.SelectedItem;
InterpolationTools.Mode interpolationmode = (InterpolationTools.Mode) BuilderPlug.Me.MenusForm.GradientInterpolationMenu.SelectedIndex;
if(General.Map.UDMF)
if(General.Map.UDMF && mode != MenusForm.BrightnessGradientModes.Sectors)
{
if(mode == MenusForm.BrightnessGradientModes.Ceilings || mode == MenusForm.BrightnessGradientModes.Floors)
{