editor fix: selectall caused animated model to blow up #76

This commit is contained in:
Turanszki Janos
2020-01-19 15:02:31 +00:00
parent 2bf2b0dac3
commit 7761813253
+8 -2
View File
@@ -1175,9 +1175,15 @@ void EditorComponent::Update(float dt)
selectAll = false;
EndTranslate();
for (size_t i = 0; i < scene.names.GetCount(); ++i)
for (size_t i = 0; i < scene.transforms.GetCount(); ++i)
{
Entity entity = scene.names.GetEntity(i);
Entity entity = scene.transforms.GetEntity(i);
if (scene.hierarchy.Contains(entity))
{
// Parented animated objects don't work properly when attached to translator in bulk
continue;
}
wiScene::PickResult picked;
picked.entity = entity;