Skip to content

Commit

Permalink
Modified line 122 in ContentBrowserPanel
Browse files Browse the repository at this point in the history
  • Loading branch information
PrakarshPanwar committed Mar 19, 2023
1 parent 4e97b65 commit b9da860
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Hazelnut/src/Panels/ContentBrowserPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ namespace Hazel {
icon = directoryEntry.is_directory() ? m_DirectoryIcon : m_FileIcon;

ImGui::PushStyleColor(ImGuiCol_Button, ImVec4(0, 0, 0, 0));
if (icon.get() != nullptr)
if (icon)
ImGui::ImageButton((ImTextureID)icon->GetRendererID(), { thumbnailSize, thumbnailSize }, { 0, 1 }, { 1, 0 });

if (ImGui::BeginDragDropSource())
Expand Down

0 comments on commit b9da860

Please sign in to comment.