Saving prefab from prefab editor now works

This commit is contained in:
antopilo
2024-09-19 10:37:22 -04:00
parent 616532e78b
commit 216fa230b6
4 changed files with 23 additions and 24 deletions

View File

@@ -68,7 +68,8 @@ void EditorSelectionPanel::ResolveFile(Ref<Nuake::File> file)
void EditorSelectionPanel::Draw(EditorSelection selection, const std::string& id)
{
if (ImGui::Begin(std::string("Properties##" + id).c_str()))
const std::string& windowID = id.empty() ? "Properties" : std::string("Properties##" + id);
if (ImGui::Begin(windowID.c_str()))
{
switch (selection.Type)
{