4
4
mirror of https://github.com/H-uru/korman.git synced 2025-07-14 22:36:52 +00:00

That's silly

This commit is contained in:
2015-07-12 18:33:33 -04:00
parent 3afb4198e4
commit 7121b176dc

View File

@ -70,11 +70,7 @@ def modifier_mapping():
d = {} d = {}
sorted_modifiers = sorted(PlasmaModifierProperties.__subclasses__(), key=lambda x: x.bl_label) sorted_modifiers = sorted(PlasmaModifierProperties.__subclasses__(), key=lambda x: x.bl_label)
for i, mod in enumerate(sorted_modifiers): for i, mod in enumerate(sorted_modifiers):
if hasattr(mod, "bl_icon"): icon = getattr(mod, "bl_icon", "")
icon = mod.bl_icon
else:
icon = ""
tup = (mod.pl_id, mod.bl_label, mod.bl_description, icon, i) tup = (mod.pl_id, mod.bl_label, mod.bl_description, icon, i)
if mod.bl_category not in d: if mod.bl_category not in d:
d[mod.bl_category] = [tup] d[mod.bl_category] = [tup]