Fix csv imports
This commit is contained in:
parent
040de2bcd0
commit
c41ac2f752
Binary file not shown.
@ -595,6 +595,9 @@ namespace Bfres.Structs
|
||||
foreach (STGenericObject obj in csvModel.objects)
|
||||
{
|
||||
FSHP shape = new FSHP();
|
||||
Nodes["FshpFolder"].Nodes.Add(shape);
|
||||
shapes.Add(shape);
|
||||
|
||||
shape.VertexBufferIndex = shapes.Count;
|
||||
shape.vertices = obj.vertices;
|
||||
shape.MaterialIndex = 0;
|
||||
@ -636,10 +639,6 @@ namespace Bfres.Structs
|
||||
{
|
||||
BfresSwitch.ReadShapesVertices(shape, shape.Shape, shape.VertexBuffer, this);
|
||||
}
|
||||
|
||||
|
||||
Nodes["FshpFolder"].Nodes.Add(shape);
|
||||
shapes.Add(shape);
|
||||
}
|
||||
Cursor.Current = Cursors.Default;
|
||||
}
|
||||
|
@ -1067,7 +1067,7 @@ namespace Bfres.Structs
|
||||
if (VertexSkinCount == 0 || VertexSkinCount == 1)
|
||||
{
|
||||
int boneId = BoneIndex;
|
||||
if (VertexSkinCount == 1)
|
||||
if (VertexSkinCount == 1 && vtx.boneIds.Count > 0)
|
||||
boneId = vtx.boneIds[0];
|
||||
|
||||
Console.WriteLine("Old " + vtx.pos);
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user