Skip to content

Commit

Permalink
support .fgd color1 key type
Browse files Browse the repository at this point in the history
  • Loading branch information
Garux committed Sep 20, 2023
1 parent b21d2cb commit a9a9907
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions radiant/eclass_fgd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ void EntityClassFGD_parseClass( Tokeniser& tokeniser, bool fixedsize, bool isBas
|| string_equal_nocase( type.c_str(), "studio" )
|| string_equal_nocase( type.c_str(), "sprite" )
|| string_equal_nocase( type.c_str(), "color255" )
|| string_equal_nocase( type.c_str(), "color1" )
|| string_equal_nocase( type.c_str(), "target_source" )
|| string_equal_nocase( type.c_str(), "target_destination" )
|| string_equal_nocase( type.c_str(), "sound" )
Expand Down Expand Up @@ -490,6 +491,9 @@ void EntityClassFGD_parseClass( Tokeniser& tokeniser, bool fixedsize, bool isBas
if ( string_equal_nocase( type.c_str(), "studio" ) ) {
attributeType = "model";
}
else if ( string_equal_nocase( type.c_str(), "color1" ) ) {
attributeType = "color";
}

EntityClassAttribute attribute;
attribute.m_type = attributeType;
Expand Down

0 comments on commit a9a9907

Please sign in to comment.