Some simple sharc fixes for v12
This commit is contained in:
parent
6e64b38a79
commit
554c193a48
@ -1684,7 +1684,7 @@ namespace Bfres.Structs
|
||||
int MaxWeight = 255;
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
if (VertexSkinCount < i + 1 && vtx.boneWeights.Count < i + 1)
|
||||
if (VertexSkinCount < i + 1 || vtx.boneWeights.Count < i + 1)
|
||||
{
|
||||
weightsA[i] = 0;
|
||||
MaxWeight = 0;
|
||||
|
@ -214,6 +214,10 @@ namespace FirstPlugin
|
||||
VertexShaderIndex = reader.ReadInt32();
|
||||
FragmentShaderIndex = reader.ReadInt32();
|
||||
GeoemetryShaderIndex = reader.ReadInt32();
|
||||
|
||||
VertexShaderIndex = 0;
|
||||
FragmentShaderIndex = 1;
|
||||
GeoemetryShaderIndex = -1;
|
||||
}
|
||||
Text = reader.ReadString((int)NameLength, true);
|
||||
|
||||
@ -233,7 +237,7 @@ namespace FirstPlugin
|
||||
variationFragmenMacroData.Read(reader, header.Version);
|
||||
variationGeometryMacroData.Read(reader, header.Version);
|
||||
|
||||
if (header.Version >= 13)
|
||||
if (header.Version >= 12)
|
||||
{
|
||||
variationComputeMacroData.Read(reader, header.Version);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user