mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-26 17:02:53 +08:00
Fix for crash when changing entity archetypes
This commit is contained in:
parent
3f445182f3
commit
906602eb13
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user