mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-13 11:19:58 +01:00
BugFix fisplay Shader Code
This commit is contained in:
@@ -5526,9 +5526,9 @@ void ShaderEditor::Render()
|
|||||||
if (ImGui::BeginMenu(IMGUI_TITLE_SHADEREDITOR))
|
if (ImGui::BeginMenu(IMGUI_TITLE_SHADEREDITOR))
|
||||||
{
|
{
|
||||||
if (ImGui::MenuItem( ICON_FA_SYNC " Reload", nullptr, nullptr, current_ != nullptr)) {
|
if (ImGui::MenuItem( ICON_FA_SYNC " Reload", nullptr, nullptr, current_ != nullptr)) {
|
||||||
|
// force reload
|
||||||
if ( current_ != nullptr )
|
if ( current_ != nullptr )
|
||||||
filters_.erase(current_);
|
filters_.erase(current_);
|
||||||
// force reload
|
|
||||||
current_ = nullptr;
|
current_ = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -5549,6 +5549,8 @@ void ShaderEditor::Render()
|
|||||||
// inform status
|
// inform status
|
||||||
status_ = "Building...";
|
status_ = "Building...";
|
||||||
// force reload
|
// force reload
|
||||||
|
if ( current_ != nullptr )
|
||||||
|
filters_.erase(current_);
|
||||||
current_ = nullptr;
|
current_ = nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user