mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-14 16:04:49 +08:00
Increased resilience to some modded drawables
This commit is contained in:
@@ -2381,6 +2381,11 @@ namespace CodeWalker.GameFiles
|
||||
{
|
||||
this.VertexData = this.VertexBuffer.Data1 ?? this.VertexBuffer.Data2;
|
||||
|
||||
if (this.VerticesCount == 0)
|
||||
{
|
||||
this.VerticesCount = (ushort)(this.VertexData?.VertexCount ?? 0);
|
||||
}
|
||||
|
||||
//if (VertexBuffer.Data1 != VertexBuffer.Data2)
|
||||
//{ }//no hit
|
||||
//if (VertexDataPointer == 0)
|
||||
|
||||
Reference in New Issue
Block a user