Skip to content

Commit d4a9e67

Browse files
authored
Update TTModel.cs
1 parent 14a511e commit d4a9e67

File tree

1 file changed

+10
-10
lines changed
  • xivModdingFramework/Models/DataContainers

1 file changed

+10
-10
lines changed

xivModdingFramework/Models/DataContainers/TTModel.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ public void UpdateShapeData()
357357
public class TTShapePart : ICloneable
358358
{
359359
/// <summary>
360-
/// The raw shp_ identifier.
360+
/// The raw shp identifier.
361361
/// </summary>
362362
public string Name;
363363

@@ -808,7 +808,7 @@ public void OrderMeshGroupsForImport()
808808
MeshGroups = MeshGroups.OrderBy(x => (int)x.MeshType).ToList();
809809

810810
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)))
812812
{
813813
throw new InvalidDataException("Non-Standard Meshes cannot have shape data.");
814814
}
@@ -954,7 +954,7 @@ public bool HasShapeData
954954
{
955955
get
956956
{
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 ));
958958
}
959959
}
960960

@@ -972,7 +972,7 @@ public List<string> ShapeNames
972972
{
973973
foreach (var shp in p.ShapeParts)
974974
{
975-
if (!shp.Key.StartsWith("shp_")) continue;
975+
if (!shp.Key.StartsWith("shp")) continue;
976976
shapes.Add(shp.Key);
977977
}
978978
}
@@ -996,7 +996,7 @@ public short ShapePartCount
996996
{
997997
foreach(var shp in p.ShapeParts)
998998
{
999-
if (!shp.Key.StartsWith("shp_")) continue;
999+
if (!shp.Key.StartsWith("shp")) continue;
10001000
shapeNames.Add(shp.Key);
10011001
}
10021002
}
@@ -1024,7 +1024,7 @@ public ushort ShapeDataCount
10241024
// For every index.
10251025
foreach(var shp in p.ShapeParts)
10261026
{
1027-
if (!shp.Key.StartsWith("shp_")) continue;
1027+
if (!shp.Key.StartsWith("shp")) continue;
10281028
// There is an entry for every shape it shows up in.
10291029
if (shp.Value.VertexReplacements.ContainsKey(index))
10301030
{
@@ -1059,7 +1059,7 @@ public List<short> ShapePartCounts
10591059
var shpIdx = 0;
10601060
foreach (var shpNm in shapeNames)
10611061
{
1062-
if (!shpNm.StartsWith("shp_")) continue;
1062+
if (!shpNm.StartsWith("shp")) continue;
10631063
foreach (var m in MeshGroups)
10641064
{
10651065
if (m.Parts.Any(x => x.ShapeParts.ContainsKey(shpNm)))
@@ -1124,7 +1124,7 @@ private class VertexReplacementInfo
11241124
foreach(var shapeKv in p.ShapeParts)
11251125
{
11261126
var shapeName = shapeKv.Key;
1127-
if(!shapeName.StartsWith("shp_"))
1127+
if(!shapeName.StartsWith("shp"))
11281128
{
11291129
continue;
11301130
}
@@ -2079,7 +2079,7 @@ public void SaveToFile(string filePath, bool shiftUv = true, string texturePath
20792079
// Shape Parts
20802080
foreach(var shpKv in p.ShapeParts)
20812081
{
2082-
if (!shpKv.Key.StartsWith("shp_")) continue;
2082+
if (!shpKv.Key.StartsWith("shp")) continue;
20832083
var shp = shpKv.Value;
20842084

20852085
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
24732473
// Shape Parts
24742474
foreach (var shpKv in p.ShapeParts)
24752475
{
2476-
if (!shpKv.Key.StartsWith("shp_")) continue;
2476+
if (!shpKv.Key.StartsWith("shp")) continue;
24772477
var shp = shpKv.Value;
24782478

24792479
query = @"insert into shape_vertices ( mesh, part, shape, vertex_id, position_x, position_y, position_z)

0 commit comments

Comments
 (0)