Moved renderentities check

This commit is contained in:
Carmine 2018-08-12 18:04:34 +02:00
parent 1b94cd4f04
commit aec2426d7b

View File

@ -1537,8 +1537,6 @@ namespace CodeWalker.Rendering
//if an entity is not fully loaded, set a flag for its parent, then traverse to root //if an entity is not fully loaded, set a flag for its parent, then traverse to root
//until found an entity that is fully loaded. //until found an entity that is fully loaded.
//on a second loop, build a final render list based on the flags. //on a second loop, build a final render list based on the flags.
if(renderentities)
{
for (int i = 0; i < renderworldentities.Count; i++) for (int i = 0; i < renderworldentities.Count; i++)
{ {
@ -1565,6 +1563,8 @@ namespace CodeWalker.Rendering
} }
} }
if(renderentities)
{
for (int i = 0; i < renderworldrenderables.Count; i++) for (int i = 0; i < renderworldrenderables.Count; i++)
{ {
var rent = renderworldrenderables[i]; var rent = renderworldrenderables[i];