Skip to content

Commit

Permalink
Fixed broken material texture assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
adriengivry committed Nov 26, 2024
1 parent 7b9a111 commit 7a63136
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ void OvEditor::Panels::MaterialEditor::GenerateShaderSettingsContent()
{
try
{
auto texture = std::any_cast<Texture*>(*info.second);
auto& texture = std::any_cast<Texture*&>(*info.second);
GUIDrawer::DrawTexture(*m_shaderSettingsColumns, formattedType, texture);
}
catch (const std::bad_any_cast&)
Expand Down

0 comments on commit 7a63136

Please sign in to comment.