Fixed, Tag Explorer: in some cases (for example, when geometry was removed implicitly by dragging geometry) the list was not updated.

Fixed: in some cases generalized sector effect detection logic failed to detect a valid generalized effect.
Fixed, Action selector control: action label was not updated when changing action number from one generalized effect to another.
This commit is contained in:
MaxED 2016-05-16 14:04:04 +00:00
parent 701468fcd8
commit 8ee504f9cf
4 changed files with 22 additions and 8 deletions

View file

@ -1052,9 +1052,9 @@ namespace CodeImp.DoomBuilder.Config
for(int j = options[i].Bits.Count - 1; j > -1; j--)
{
GeneralizedBit bit = options[i].Bits[j];
if(bit.Index > cureffect) continue;
if(bit.Index > 0 && (cureffect & bit.Index) == bit.Index) return true;
cureffect -= bit.Index;
if(cureffect < 1) return false;
}
}

View file

@ -218,6 +218,11 @@ namespace CodeImp.DoomBuilder.Controls
list.SelectedIndex = itemindex;
list.Refresh();
}
//mxd. This may be generalized effect, and it may've changed
else if(itemindex == -1)
{
list.Refresh();
}
// Raise change event
//mxd. This HAS to be raised during Edit form setup, otherwise TypeHandlers in ArgumentBoxes won't be initialized

View file

@ -516,14 +516,17 @@ namespace CodeImp.DoomBuilder.BuilderModes
s.CeilSlopeOffset = -Vector3D.DotProduct(s.CeilSlope, new Vector3D(center + offset, ceiling.GetZ(center)));
}
}
}
// Update cached values
General.Map.Map.Update();
// Done
Cursor.Current = Cursors.Default;
General.Map.IsChanged = true;
// Update cached values
General.Map.Map.Update();
//mxd. Let the plugins know
General.Editing.AcceptMode();
// Done
Cursor.Current = Cursors.Default;
General.Map.IsChanged = true;
}
}
}

View file

@ -74,6 +74,12 @@ namespace CodeImp.DoomBuilder.TagExplorer
if(tagExplorer != null) tagExplorer.UpdateTreeSoon();
}
// Edit performed
public override void OnEditAccept()
{
if(tagExplorer != null) tagExplorer.UpdateTreeSoon();
}
public override void OnActionEnd(Actions.Action action)
{
if(tagExplorer != null && action.Name == "builder_deleteitem")