Skip to content

Commit

Permalink
#5681: Don't add the __editor particle copies to the list of existing…
Browse files Browse the repository at this point in the history
… defs
  • Loading branch information
codereader committed Jul 27, 2021
1 parent 172fd13 commit cf5212b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion radiant/ui/particles/ParticleEditor.cpp
Expand Up @@ -175,10 +175,17 @@ void ParticleEditor::populateParticleDefList()
// Create and use a ParticlesVisitor to populate the list
GlobalParticlesManager().forEachParticleDef([&] (const IParticleDef& particle)
{
auto name = particle.getName();

if (string::ends_with(name, EDIT_SUFFIX))
{
return; // skip the edit particles, they should not be showing up
}

// Add the Def name to the list store
wxutil::TreeModel::Row row = _defList->AddItem();

row[DEF_COLS().name] = particle.getName();
row[DEF_COLS().name] = name;

row.SendItemAdded();
});
Expand Down

0 comments on commit cf5212b

Please sign in to comment.