editor: script window file name stuck fix

This commit is contained in:
Turánszki János
2022-11-23 17:38:30 +01:00
parent 90cfe73a05
commit 0cedfdac08
+5 -4
View File
@@ -20,7 +20,7 @@ void ScriptWindow::Create(EditorComponent* _editor)
editor->RecordEntity(archive, entity);
editor->optionsWnd.RefreshEntityTree();
});
});
float hei = 20;
float wid = 100;
@@ -96,9 +96,6 @@ void ScriptWindow::Create(EditorComponent* _editor)
void ScriptWindow::SetEntity(wi::ecs::Entity entity)
{
if (this->entity == entity)
return;
this->entity = entity;
wi::scene::Scene& scene = editor->GetCurrentScene();
@@ -116,6 +113,10 @@ void ScriptWindow::SetEntity(wi::ecs::Entity entity)
}
playonceCheckBox.SetCheck(script->IsPlayingOnlyOnce());
}
else
{
fileButton.SetText("Open File...");
}
}
void ScriptWindow::Update(const wi::Canvas& canvas, float dt)