@@ -1476,7 +1476,7 @@ public static async Task<TTModel> LoadFromFile(string filePath, Action<bool, str
1476
1476
{
1477
1477
loggingFunction = ModelModifiers . NoOp ;
1478
1478
}
1479
- if ( settings == null )
1479
+ if ( settings == null )
1480
1480
{
1481
1481
settings = new ModelImportOptions ( ) ;
1482
1482
}
@@ -1519,7 +1519,7 @@ public static async Task<TTModel> LoadFromFile(string filePath, Action<bool, str
1519
1519
}
1520
1520
else
1521
1521
{
1522
- model . MeshGroups [ meshNum ] . MeshType = ( EMeshType ) Enum . Parse ( typeof ( EMeshType ) , t ) ;
1522
+ model . MeshGroups [ meshNum ] . MeshType = ( EMeshType ) Enum . Parse ( typeof ( EMeshType ) , t ) ;
1523
1523
}
1524
1524
1525
1525
model . MeshGroups [ meshNum ] . Name = reader . GetString ( "name" ) ;
@@ -1546,7 +1546,7 @@ public static async Task<TTModel> LoadFromFile(string filePath, Action<bool, str
1546
1546
}
1547
1547
1548
1548
// Spawn parts as needed.
1549
- while ( model . MeshGroups [ meshNum ] . Parts . Count <= partNum )
1549
+ while ( model . MeshGroups [ meshNum ] . Parts . Count <= partNum )
1550
1550
{
1551
1551
model . MeshGroups [ meshNum ] . Parts . Add ( new TTMeshPart ( ) ) ;
1552
1552
@@ -1672,15 +1672,14 @@ public static async Task<TTModel> LoadFromFile(string filePath, Action<bool, str
1672
1672
vertex . FlowDirection [ 0 ] = reader . GetFloat ( "flow_u" ) ;
1673
1673
vertex . FlowDirection [ 1 ] = reader . GetFloat ( "flow_v" ) ;
1674
1674
1675
- if ( vertex . Binormal != Vector3 . Zero )
1675
+ if ( vertex . Binormal != Vector3 . Zero )
1676
1676
{
1677
1677
var tangent = Vector3 . Cross ( vertex . Normal , vertex . Binormal ) . Normalized ( ) ;
1678
1678
var dot = Vector3 . Dot ( tangent , vertex . Tangent ) ;
1679
- if ( dot < 0.5f )
1679
+ if ( dot < 0.5f )
1680
1680
{
1681
1681
vertex . Handedness = true ;
1682
- }
1683
- else
1682
+ } else
1684
1683
{
1685
1684
vertex . Handedness = false ;
1686
1685
}
@@ -1694,8 +1693,7 @@ public static async Task<TTModel> LoadFromFile(string filePath, Action<bool, str
1694
1693
try
1695
1694
{
1696
1695
return reader . GetInt32 ( "vertex_id" ) ;
1697
- }
1698
- catch ( Exception ex )
1696
+ } catch ( Exception ex )
1699
1697
{
1700
1698
throw ex ;
1701
1699
}
0 commit comments