Fixed, Thing/Linedef edit forms: fixed a crash during form setup when Action was either unknown or generalized.

Fixed, ANIMDEFS parser: in some cases the parser was unable to read camera texture name.
This commit is contained in:
MaxED 2015-12-28 21:56:10 +00:00
parent 4c794ad028
commit 0998da458a
2 changed files with 5 additions and 3 deletions

View file

@ -217,10 +217,11 @@ namespace CodeImp.DoomBuilder.Controls
{
list.SelectedIndex = itemindex;
list.Refresh();
// Raise change event
if(ValueChanges != null) ValueChanges(this, EventArgs.Empty);
}
// Raise change event
//mxd. This HAS to be raised during Edit form setup, otherwise TypeHandlers in ArgumentBoxes won't be initialized
if(ValueChanges != null) ValueChanges(this, EventArgs.Empty);
}
// Keys pressed in number box

View file

@ -56,6 +56,7 @@ namespace CodeImp.DoomBuilder.ZDoom
if(string.IsNullOrEmpty(token) || string.Compare(token, "CAMERATEXTURE", true) != 0) continue;
// Texture name
SkipWhitespace(true);
string texturename = StripTokenQuotes(ReadToken(false));
if(string.IsNullOrEmpty(texturename))
{