Fix static model registering for rendering after streaming in even if disabled

This commit is contained in:
Wojciech Figat
2022-04-22 18:33:22 +02:00
parent 42bb4483b3
commit 4524edb899
20 changed files with 49 additions and 44 deletions

View File

@@ -276,7 +276,8 @@ void AddActorToSceneRendering(SceneRendering* s, Actor* a)
{
if (a && a->IsActiveInHierarchy())
{
s->AddActor(a);
int32 key = -1;
s->AddActor(a, key);
for (Actor* child : a->Children)
AddActorToSceneRendering(s, child);
}