From 7121b176dc35ea16d63eaff1b84d6a1f9833bad9 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sun, 12 Jul 2015 18:33:33 -0400 Subject: [PATCH] That's silly --- korman/properties/modifiers/__init__.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/korman/properties/modifiers/__init__.py b/korman/properties/modifiers/__init__.py index 2f5bd0d..dcfaa9c 100644 --- a/korman/properties/modifiers/__init__.py +++ b/korman/properties/modifiers/__init__.py @@ -70,11 +70,7 @@ def modifier_mapping(): d = {} sorted_modifiers = sorted(PlasmaModifierProperties.__subclasses__(), key=lambda x: x.bl_label) for i, mod in enumerate(sorted_modifiers): - if hasattr(mod, "bl_icon"): - icon = mod.bl_icon - else: - icon = "" - + icon = getattr(mod, "bl_icon", "") tup = (mod.pl_id, mod.bl_label, mod.bl_description, icon, i) if mod.bl_category not in d: d[mod.bl_category] = [tup]