Visual mode: fixed a crash while changing 3d floor texture offsets when visual sector was not created for 3d floor's control sector.

Visual mode: Info/Warning/Error status messages were not displayed properly when nothing was selected.
Sector Edit form, UDMF: Reset and Link buttons were overlapped in Floor/Ceiling scale controls.
This commit is contained in:
MaxED 2013-07-29 12:01:06 +00:00
parent ca49587ed1
commit e0b7af81a4
5 changed files with 16 additions and 26 deletions

View file

@ -378,6 +378,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
protected override VisualSector CreateVisualSector(Sector s)
{
BaseVisualSector vs = new BaseVisualSector(this, s);
if (vs != null) allsectors.Add(s, vs); //mxd
return vs;
}
@ -501,11 +502,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
//mxd
protected override void moveSelectedThings(Vector2D direction, bool absolutePosition) {
List<VisualThing> visualThings = GetSelectedVisualThings(true);
if (visualThings.Count == 0) {
General.Interface.DisplayStatus(StatusType.Warning, "Select some Things first!");
return;
}
if (visualThings.Count == 0) return;
PreAction(UndoGroup.ThingMove);