diff options
author | Nathan Vegdahl <cessen@cessen.com> | 2013-02-16 12:12:03 +0400 |
---|---|---|
committer | Nathan Vegdahl <cessen@cessen.com> | 2013-02-16 12:12:03 +0400 |
commit | fa8c52897eda889aa4864f31546a2394435bbd92 (patch) | |
tree | ce7c4ae14a452ff63032d705ae20d1df462dc17f /rigify/ui.py | |
parent | 420260c2a713bd7729f31da1f95c3fbb064dba42 (diff) |
Rigify: removed "from rigfy import X" statements where possible.
This makes it much easier for e.g. someone to branch Rigify for
custom purposes, since there won't be weird name conflicts.
Also changed from using __import__() for dynamic imports to using
importlib.import_module(). This simplifies the code and should
be more robust.
Finally, misc pep8 cleanups.
Diffstat (limited to 'rigify/ui.py')
-rw-r--r-- | rigify/ui.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/rigify/ui.py b/rigify/ui.py index 946b1e70..40121cdc 100644 --- a/rigify/ui.py +++ b/rigify/ui.py @@ -18,13 +18,12 @@ # <pep8 compliant> -# test comment - import bpy from bpy.props import StringProperty -import rigify -from rigify.utils import get_rig_type -from rigify import generate + +from .utils import get_rig_type +from . import rig_lists +from . import generate class DATA_PT_rigify_buttons(bpy.types.Panel): @@ -59,7 +58,7 @@ class DATA_PT_rigify_buttons(bpy.types.Panel): for i in range(0, len(id_store.rigify_types)): id_store.rigify_types.remove(0) - for r in rigify.rig_list: + for r in rig_lists.rig_list: # collection = r.split('.')[0] # UNUSED if collection_name == "All": a = id_store.rigify_types.add() @@ -159,7 +158,7 @@ class BONE_PT_rigify_buttons(bpy.types.Panel): for i in range(0, len(id_store.rigify_types)): id_store.rigify_types.remove(0) - for r in rigify.rig_list: + for r in rig_lists.rig_list: # collection = r.split('.')[0] # UNUSED if collection_name == "All": a = id_store.rigify_types.add() |