Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Vegdahl <cessen@cessen.com>2013-02-16 12:12:03 +0400
committerNathan Vegdahl <cessen@cessen.com>2013-02-16 12:12:03 +0400
commitfa8c52897eda889aa4864f31546a2394435bbd92 (patch)
treece7c4ae14a452ff63032d705ae20d1df462dc17f /rigify/generate.py
parent420260c2a713bd7729f31da1f95c3fbb064dba42 (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/generate.py')
-rw-r--r--rigify/generate.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/rigify/generate.py b/rigify/generate.py
index 89f89b71..69c8863b 100644
--- a/rigify/generate.py
+++ b/rigify/generate.py
@@ -24,14 +24,14 @@ import time
import traceback
import sys
from rna_prop_ui import rna_idprop_ui_prop_get
-from rigify.utils import MetarigError, new_bone, get_rig_type
-from rigify.utils import ORG_PREFIX, MCH_PREFIX, DEF_PREFIX, WGT_PREFIX, ROOT_NAME, make_original_name
-from rigify.utils import RIG_DIR
-from rigify.utils import create_root_widget
-from rigify.utils import random_id
-from rigify.utils import copy_attributes
-from rigify.rig_ui_template import UI_SLIDERS, layers_ui, UI_REGISTER
-from rigify import rigs
+
+from .utils import MetarigError, new_bone, get_rig_type
+from .utils import ORG_PREFIX, MCH_PREFIX, DEF_PREFIX, WGT_PREFIX, ROOT_NAME, make_original_name
+from .utils import RIG_DIR
+from .utils import create_root_widget
+from .utils import random_id
+from .utils import copy_attributes
+from .rig_ui_template import UI_SLIDERS, layers_ui, UI_REGISTER
RIG_MODULE = "rigs"
ORG_LAYER = [n == 31 for n in range(0, 32)] # Armature layer that original bones should be moved to.