input fix and editor improvements

This commit is contained in:
Turanszki Janos
2020-05-02 12:26:37 +01:00
parent e77647659a
commit 2a86f71cd6
10 changed files with 86 additions and 120 deletions
+1 -4
View File
@@ -143,10 +143,7 @@ void AnimationWindow::Update()
{
Entity e = scene.animations.GetEntity(i);
NameComponent& name = *scene.names.GetComponent(e);
std::stringstream ss("");
ss << name.name << " (" << e << ")";
animationsComboBox->AddItem(ss.str());
animationsComboBox->AddItem(name.name.empty() ? std::to_string(e) : name.name);
if (e == entity)
{