Editor icons are assigned only to existing entities - fixed crash

This commit is contained in:
Mikulas Florek 2015-10-17 00:50:51 +02:00
parent e533327cc4
commit 481ffe0e47
2 changed files with 3 additions and 1 deletions

View file

@ -2436,7 +2436,7 @@ public:
Universe* universe = getUniverse();
for (int i = 0; i < universe->getEntityCount(); ++i)
{
Entity e(i);
Entity e = universe->getEntityFromDenseIdx(i);
createEditorIcon(e);
}
}

View file

@ -156,6 +156,8 @@ public:
if (ImGui::BeginChild("right", half_size, true))
{
ImGui::Text("Version 0.17. - News");
ImGui::BulletText("Fog height");
ImGui::BulletText("Bitmap to heightmap convertor");
ImGui::BulletText("LOD preview");
ImGui::BulletText("New gizmo");
ImGui::BulletText("Orbit camera");