Skip to content

Commit

Permalink
#6034: Clear the tree view filter before creating a new material, oth…
Browse files Browse the repository at this point in the history
…erwise it's not immediately visible
  • Loading branch information
codereader committed Jul 31, 2022
1 parent 25ac893 commit d65d768
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions radiant/ui/materials/editor/MaterialEditor.cpp
Expand Up @@ -1557,6 +1557,9 @@ void MaterialEditor::selectMaterial(const MaterialPtr& material)

void MaterialEditor::_onNewMaterial(wxCommandEvent& ev)
{
// Clear the filter before creating a new material
_treeView->ClearFilterText();

auto materialName = "textures/darkmod/map_specific/unnamed";
auto newMaterial = GlobalMaterialManager().createEmptyMaterial(materialName);

Expand Down

0 comments on commit d65d768

Please sign in to comment.