mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-14 07:30:51 +08:00
Fix for crash when changing entity archetypes
This commit is contained in:
@@ -2088,6 +2088,8 @@ namespace CodeWalker.Rendering
|
||||
private bool RenderIsEntityFinalRender(YmapEntityDef ent)
|
||||
{
|
||||
var arch = ent.Archetype;
|
||||
if (arch == null) return false;
|
||||
|
||||
bool isshadowproxy = false;
|
||||
bool isreflproxy = false;
|
||||
uint archflags = arch._BaseArchetypeDef.flags;
|
||||
@@ -2170,6 +2172,8 @@ namespace CodeWalker.Rendering
|
||||
|
||||
private Renderable GetArchetypeRenderable(Archetype arch)
|
||||
{
|
||||
if (arch == null) return null;
|
||||
|
||||
Renderable rndbl = null;
|
||||
if (!ArchetypeRenderables.TryGetValue(arch, out rndbl))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user