[Bf-extensions-cvs] [6020dd1] master: Fix: reloading CMU mocap browser with F8 failed
Sybren A. Stüvel
noreply at git.blender.org
Mon Jul 13 10:16:00 CEST 2015
Commit: 6020dd1d2148179f429640b0a04f08ff2c557616
Author: Sybren A. Stüvel
Date: Mon Jul 13 10:14:42 2015 +0200
Branches: master
https://developer.blender.org/rBAC6020dd1d2148179f429640b0a04f08ff2c557616
Fix: reloading CMU mocap browser with F8 failed
importlib.reload() was called on a non-module object.
===================================================================
M cmu_mocap_browser/__init__.py
===================================================================
diff --git a/cmu_mocap_browser/__init__.py b/cmu_mocap_browser/__init__.py
index 243e3bc..c55c3ae 100644
--- a/cmu_mocap_browser/__init__.py
+++ b/cmu_mocap_browser/__init__.py
@@ -40,13 +40,12 @@ if 'bpy' in locals():
library = importlib.reload(library)
download = importlib.reload(download)
makehuman = importlib.reload(makehuman)
- initialize_subjects = importlib.reload(initialize_subjects)
- update_motions = importlib.reload(update_motions)
+ data = importlib.reload(data)
else:
from . import library
from . import download
from . import makehuman
- from .data import initialize_subjects, update_motions
+ from . import data
import os
import bpy
@@ -61,7 +60,7 @@ class CMUMocapSubjectBrowser(bpy.types.Panel):
bl_options = {'DEFAULT_CLOSED'}
def draw(self, context):
- initialize_subjects(context)
+ data.initialize_subjects(context)
layout = self.layout
cml = context.user_preferences.addons['cmu_mocap_browser'].preferences
layout.template_list("UI_UL_list", "SB", cml, "subject_list",
More information about the Bf-extensions-cvs
mailing list