@@ -45,7 +45,7 @@ public static BBModel Interpret(string fileContent)
4545 foreach ( JObject jElement in elements )
4646 {
4747 JObject jFaces = ( JObject ) jElement [ "faces" ] ;
48- string name = ( string ) jElement . GetRequired ( "name" ) ;
48+ string name = ( ( string ) jElement . GetRequired ( "name" ) ) . ToLowerFast ( ) ;
4949 string type = jElement . GetString ( "type" , "cube" ) ;
5050 Guid id = Guid . Parse ( ( string ) jElement . GetRequired ( "uuid" ) ) ;
5151 if ( type != "cube" )
@@ -92,9 +92,9 @@ public static BBModel Interpret(string fileContent)
9292 BBModel . Texture texture = new ( )
9393 {
9494 Path = ( string ) jTexture . GetRequired ( "path" ) ,
95- Name = ( string ) jTexture . GetRequired ( "name" ) ,
96- Folder = ( string ) jTexture . GetRequired ( "folder" ) ,
97- Namespace = ( string ) jTexture . GetRequired ( "namespace" ) ,
95+ Name = ( ( string ) jTexture . GetRequired ( "name" ) ) . ToLowerFast ( ) ,
96+ Folder = ( ( string ) jTexture . GetRequired ( "folder" ) ) . ToLowerFast ( ) ,
97+ Namespace = ( ( string ) jTexture . GetRequired ( "namespace" ) ) . ToLowerFast ( ) ,
9898 ID = ( string ) jTexture . GetRequired ( "id" ) ,
9999 Mode = ( string ) jTexture . GetRequired ( "mode" ) ,
100100 Particle = jTexture . GetBool ( "particle" , false ) ,
@@ -158,7 +158,7 @@ public static BBModel Interpret(string fileContent)
158158 BBModel . Animation animation = new ( )
159159 {
160160 UUID = Guid . Parse ( ( string ) jAnimation . GetRequired ( "uuid" ) ) ,
161- Name = ( string ) jAnimation . GetRequired ( "name" ) ,
161+ Name = ( ( string ) jAnimation . GetRequired ( "name" ) ) . ToLowerFast ( ) ,
162162 Loop = jAnimation . GetRequiredEnum < BBModel . Animation . LoopType > ( "loop" ) ,
163163 Override = jAnimation . GetBool ( "override" , false ) ,
164164 AnimTimeUpdate = ( string ) jAnimation . GetRequired ( "anim_time_update" ) ,
@@ -249,7 +249,7 @@ public static void AddOutlineChild(BBModel model, BBModel.Outliner outline, JTok
249249
250250 public static BBModel . Outliner ReadOutliner ( BBModel model , JObject jOutliner , Dictionary < string , int > names )
251251 {
252- string name = ( string ) jOutliner . GetRequired ( "name" ) ;
252+ string name = ( ( string ) jOutliner . GetRequired ( "name" ) ) . ToLowerFast ( ) ;
253253 int nameUsed = names . GetValueOrDefault ( name , 0 ) ;
254254 names [ name ] = nameUsed + 1 ;
255255 if ( nameUsed > 0 )
0 commit comments