mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-15 00:44:49 +08:00
Fixed UV anim clips assignment to use geometry's ShaderID for the lookup.
This commit is contained in:
@@ -1291,6 +1291,7 @@ namespace CodeWalker.GameFiles
|
||||
public ushort[] BoneIds { get; set; }
|
||||
public VertexData VertexData { get; set; }
|
||||
public ShaderFX Shader { get; set; }
|
||||
public ushort ShaderID { get; set; }
|
||||
|
||||
private ResourceSystemStructBlock<ushort> BoneIdsBlock = null;//for saving only
|
||||
|
||||
@@ -2371,6 +2372,7 @@ namespace CodeWalker.GameFiles
|
||||
var geom = model.Geometries.data_items[i];
|
||||
ushort sid = (i < model.ShaderMapping.Length) ? model.ShaderMapping[i] : (ushort)0;
|
||||
geom.Shader = (sid < shaders.Length) ? shaders[sid] : null;
|
||||
geom.ShaderID = sid;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user