Avoid duplicating names in context menu

This commit is contained in:
DarkPhoenix
2019-12-06 02:59:14 +03:00
parent 6a3157a4c8
commit 7fa998f276
3 changed files with 22 additions and 14 deletions

View File

@@ -66,7 +66,7 @@ class DmgPatternEntityEditor(EntityEditor):
def getEntitiesFromContext(self):
sDP = DamagePattern.getInstance()
choices = sorted(sDP.getDamagePatternList(), key=lambda p: p.name)
choices = sorted(sDP.getUserDamagePatternList(), key=lambda p: p.name)
return [c for c in choices if c.name != "Selected Ammo"]
def DoNew(self, name):