BugFix fisplay Shader Code

This commit is contained in:
Bruno Herbelin
2022-07-05 22:18:12 +02:00
parent 34d52c975e
commit 4ac2bd8e92

View File

@@ -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;
} }
} }