From 90a1a06bbe7394efda8518d46afb241ed20b1bf7 Mon Sep 17 00:00:00 2001 From: light7734 Date: Sun, 20 Jul 2025 07:10:08 +0330 Subject: [PATCH] build: fix build on windows --- modules/mirror/private/panels/asset_browser.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/modules/mirror/private/panels/asset_browser.cpp b/modules/mirror/private/panels/asset_browser.cpp index cd04799..9f58c5e 100644 --- a/modules/mirror/private/panels/asset_browser.cpp +++ b/modules/mirror/private/panels/asset_browser.cpp @@ -82,14 +82,15 @@ void AssetBrowserPanel::on_user_interface_update() } // Button + const auto path_str = path.string(); ImGui::TableNextColumn(); - ImGui::PushID(path.c_str()); + ImGui::PushID(path_str.c_str()); switch (asset_type) { // Directory case AssetType::directory: if (ImGui::ImageButton( - path.c_str(), + path_str.c_str(), m_directory_texture->get_texture(), ImVec2(m_file_size, m_file_size) )) @@ -101,7 +102,7 @@ void AssetBrowserPanel::on_user_interface_update() // Scene case AssetType::scene: if (ImGui::ImageButton( - path.c_str(), + path_str.c_str(), m_scene_texture->get_texture(), ImVec2(m_file_size, m_file_size) )) @@ -115,7 +116,7 @@ void AssetBrowserPanel::on_user_interface_update() // Image case AssetType::image: if (ImGui::ImageButton( - path.c_str(), + path_str.c_str(), m_image_texture->get_texture(), ImVec2(m_file_size, m_file_size) )) @@ -126,7 +127,7 @@ void AssetBrowserPanel::on_user_interface_update() // Text case AssetType::text: if (ImGui::ImageButton( - path.c_str(), + path_str.c_str(), m_text_texture->get_texture(), ImVec2(m_file_size, m_file_size) ))