@@ -357,7 +357,7 @@ public void UpdateShapeData()
357
357
public class TTShapePart : ICloneable
358
358
{
359
359
/// <summary>
360
- /// The raw shp_ identifier.
360
+ /// The raw shp identifier.
361
361
/// </summary>
362
362
public string Name ;
363
363
@@ -808,7 +808,7 @@ public void OrderMeshGroupsForImport()
808
808
MeshGroups = MeshGroups . OrderBy ( x => ( int ) x . MeshType ) . ToList ( ) ;
809
809
810
810
if ( MeshGroups . Any ( x => x . MeshType != EMeshType . Standard &&
811
- x . Parts . Any ( x => x . ShapeParts . Count ( x => x . Key . StartsWith ( "shp_ " ) ) > 0 ) ) )
811
+ x . Parts . Any ( x => x . ShapeParts . Count ( x => x . Key . StartsWith ( "shp " ) ) > 0 ) ) )
812
812
{
813
813
throw new InvalidDataException ( "Non-Standard Meshes cannot have shape data." ) ;
814
814
}
@@ -954,7 +954,7 @@ public bool HasShapeData
954
954
{
955
955
get
956
956
{
957
- return MeshGroups . Any ( x => x . Parts . Any ( x => x . ShapeParts . Count ( x => x . Key . StartsWith ( "shp_ " ) ) > 0 ) ) ;
957
+ return MeshGroups . Any ( x => x . Parts . Any ( x => x . ShapeParts . Count ( x => x . Key . StartsWith ( "shp " ) ) > 0 ) ) ;
958
958
}
959
959
}
960
960
@@ -972,7 +972,7 @@ public List<string> ShapeNames
972
972
{
973
973
foreach ( var shp in p . ShapeParts )
974
974
{
975
- if ( ! shp . Key . StartsWith ( "shp_ " ) ) continue ;
975
+ if ( ! shp . Key . StartsWith ( "shp " ) ) continue ;
976
976
shapes . Add ( shp . Key ) ;
977
977
}
978
978
}
@@ -996,7 +996,7 @@ public short ShapePartCount
996
996
{
997
997
foreach ( var shp in p . ShapeParts )
998
998
{
999
- if ( ! shp . Key . StartsWith ( "shp_ " ) ) continue ;
999
+ if ( ! shp . Key . StartsWith ( "shp " ) ) continue ;
1000
1000
shapeNames . Add ( shp . Key ) ;
1001
1001
}
1002
1002
}
@@ -1024,7 +1024,7 @@ public ushort ShapeDataCount
1024
1024
// For every index.
1025
1025
foreach ( var shp in p . ShapeParts )
1026
1026
{
1027
- if ( ! shp . Key . StartsWith ( "shp_ " ) ) continue ;
1027
+ if ( ! shp . Key . StartsWith ( "shp " ) ) continue ;
1028
1028
// There is an entry for every shape it shows up in.
1029
1029
if ( shp . Value . VertexReplacements . ContainsKey ( index ) )
1030
1030
{
@@ -1059,7 +1059,7 @@ public List<short> ShapePartCounts
1059
1059
var shpIdx = 0 ;
1060
1060
foreach ( var shpNm in shapeNames )
1061
1061
{
1062
- if ( ! shpNm . StartsWith ( "shp_ " ) ) continue ;
1062
+ if ( ! shpNm . StartsWith ( "shp " ) ) continue ;
1063
1063
foreach ( var m in MeshGroups )
1064
1064
{
1065
1065
if ( m . Parts . Any ( x => x . ShapeParts . ContainsKey ( shpNm ) ) )
@@ -1124,7 +1124,7 @@ private class VertexReplacementInfo
1124
1124
foreach ( var shapeKv in p . ShapeParts )
1125
1125
{
1126
1126
var shapeName = shapeKv . Key ;
1127
- if ( ! shapeName . StartsWith ( "shp_ " ) )
1127
+ if ( ! shapeName . StartsWith ( "shp " ) )
1128
1128
{
1129
1129
continue ;
1130
1130
}
@@ -2079,7 +2079,7 @@ public void SaveToFile(string filePath, bool shiftUv = true, string texturePath
2079
2079
// Shape Parts
2080
2080
foreach ( var shpKv in p . ShapeParts )
2081
2081
{
2082
- if ( ! shpKv . Key . StartsWith ( "shp_ " ) ) continue ;
2082
+ if ( ! shpKv . Key . StartsWith ( "shp " ) ) continue ;
2083
2083
var shp = shpKv . Value ;
2084
2084
2085
2085
query = @"insert into shape_vertices ( mesh, part, shape, vertex_id, position_x, position_y, position_z)
@@ -2473,7 +2473,7 @@ public static void SaveFullToFile(string filePath, XivRace race, List<TTModel> m
2473
2473
// Shape Parts
2474
2474
foreach ( var shpKv in p . ShapeParts )
2475
2475
{
2476
- if ( ! shpKv . Key . StartsWith ( "shp_ " ) ) continue ;
2476
+ if ( ! shpKv . Key . StartsWith ( "shp " ) ) continue ;
2477
2477
var shp = shpKv . Value ;
2478
2478
2479
2479
query = @"insert into shape_vertices ( mesh, part, shape, vertex_id, position_x, position_y, position_z)
0 commit comments