From a9a9907eab2d4ed6665b2e7309848716f86ad9b7 Mon Sep 17 00:00:00 2001 From: Garux Date: Wed, 20 Sep 2023 08:10:23 +0600 Subject: [PATCH] support .fgd color1 key type #115 --- radiant/eclass_fgd.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/radiant/eclass_fgd.cpp b/radiant/eclass_fgd.cpp index dde5973a..cb62d249 100644 --- a/radiant/eclass_fgd.cpp +++ b/radiant/eclass_fgd.cpp @@ -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" ) @@ -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;