mirror of
https://github.com/4sval/FModel.git
synced 2026-06-20 15:00:12 -05:00
Wuthering Waves, Honor of Kings: World, Titan Quest 2 update
Some checks are pending
FModel QA Builder / build (push) Waiting to run
Some checks are pending
FModel QA Builder / build (push) Waiting to run
Strinova lua support MoprhTargets and Blueprint Decompiler fixes
This commit is contained in:
parent
a07ee3a55c
commit
5e4973f3de
|
|
@ -1 +1 @@
|
|||
Subproject commit cf74fc32fe1b40e9fd3440032508c5e1d50cf58d
|
||||
Subproject commit e16842fa0fd94919fcaba5bdcb361ec154be20ed
|
||||
|
|
@ -49,6 +49,7 @@ public static class AvalonExtensions
|
|||
case "bat":
|
||||
case "txt":
|
||||
case "pem":
|
||||
case "js":
|
||||
case "po":
|
||||
return null;
|
||||
default:
|
||||
|
|
|
|||
|
|
@ -61,13 +61,13 @@ public class Morph : IDisposable
|
|||
}
|
||||
}
|
||||
|
||||
public Morph(float[] vertices, Dictionary<uint, int> dict, UMorphTarget morphTarget)
|
||||
public Morph(float[] vertices, Dictionary<uint, int> dict, UMorphTarget morphTarget, int index = 0)
|
||||
{
|
||||
Name = morphTarget.Name;
|
||||
Vertices = new float[vertices.Length];
|
||||
Array.Copy(vertices, Vertices, vertices.Length);
|
||||
|
||||
foreach (var vert in morphTarget.MorphLODModels[0].Vertices)
|
||||
foreach (var vert in morphTarget.MorphLODModels[index].Vertices)
|
||||
{
|
||||
var count = 0;
|
||||
if (dict.TryGetValue(vert.SourceIdx, out var baseIndex))
|
||||
|
|
|
|||
|
|
@ -101,10 +101,10 @@ public class SkeletalModel : UModel
|
|||
foreach (var morph in export.MorphTargets)
|
||||
{
|
||||
if (!morph.TryLoad(out UMorphTarget morphTarget) || morphTarget.MorphLODModels.Length < 1 ||
|
||||
morphTarget.MorphLODModels[0].Vertices.Length < 1)
|
||||
morphTarget.MorphLODModels[skeletalMesh.LODs[LodLevel].LODIndex].Vertices.Length < 1)
|
||||
continue;
|
||||
|
||||
Morphs.Add(new Morph(cachedVertices, vertexLookup, morphTarget));
|
||||
Morphs.Add(new Morph(cachedVertices, vertexLookup, morphTarget, skeletalMesh.LODs[LodLevel].LODIndex));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user