Skip to content

Commit 7b8291e

Browse files
committed
Prepare for beta 1 release, for issue #206
1 parent da56948 commit 7b8291e

2 files changed

Lines changed: 17 additions & 10 deletions

File tree

src/mpfb/__init__.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
"""This is the MakeHuman Plugin For Blender (MPFB). For more information, see
22
the README.md file in the zip."""
33

4-
bl_info = { # pylint: disable=C0103
4+
bl_info = { # pylint: disable=C0103
55
"name": "mpfb",
66
"author": "Joel Palmius",
7-
"version": (2, 0, 4),
7+
"version": (2, 0, 5),
88
"blender": (4, 1, 0),
9-
"warning": "Plugin is in Alpha stage",
109
"location": "View3D > Properties > MPFB",
1110
"description": "MakeHuman Plugin For Blender",
1211
"doc_url": "http://static.makehumancommunity.org/mpfb.html",
@@ -37,6 +36,7 @@
3736

3837
_OLD_EXCEPTHOOK = None
3938

39+
4040
def log_crash(type, value, tb):
4141
global _OLD_EXCEPTHOOK
4242
stacktrace = "\n"
@@ -46,6 +46,7 @@ def log_crash(type, value, tb):
4646
if _OLD_EXCEPTHOOK:
4747
_OLD_EXCEPTHOOK(type, value, tb)
4848

49+
4950
def get_preference(name):
5051
_LOG.enter()
5152
if "mpfb" in bpy.context.preferences.addons:
@@ -66,8 +67,10 @@ def get_preference(name):
6667
_LOG.crash("The 'mpfb' addon does not exist!?")
6768
raise ValueError("I don't seem to exist")
6869

70+
6971
ClassManager = None
7072

73+
7174
def register():
7275
"""At this point blender is ready enough for it to make sense to
7376
start initializing python singletons"""
@@ -79,8 +82,8 @@ def register():
7982
except:
8083
print("WARNING: Could not register preferences class. Maybe it was registered by an earlier version of MPFB?")
8184

82-
global _LOG # pylint: disable=W0603
83-
global _OLD_EXCEPTHOOK # pylint: disable=W0603
85+
global _LOG # pylint: disable=W0603
86+
global _OLD_EXCEPTHOOK # pylint: disable=W0603
8487

8588
from mpfb.services.logservice import LogService
8689
_LOG = LogService.get_logger("mpfb.init")
@@ -103,7 +106,7 @@ def register():
103106
ClassManager = _ClassManager
104107

105108
if not ClassManager.isinitialized():
106-
classmanager = ClassManager() # pylint: disable=W0612
109+
classmanager = ClassManager() # pylint: disable=W0612
107110

108111
_LOG.debug("About to import mpfb.services")
109112
import mpfb.services.locationservice
@@ -147,7 +150,7 @@ def register():
147150
def unregister():
148151
"""Deconstruct all loaded blenderish classes"""
149152

150-
global _LOG # pylint: disable=W0603
153+
global _LOG # pylint: disable=W0603
151154

152155
_LOG.debug("About to unregister classes")
153156
global ClassManager

src/mpfb/services/uiservice.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,18 @@ def __init__(self):
1414
_LOG.debug("Constructing ui service")
1515
self._state = dict()
1616
self.set_value("PROPERTYPREFIX", "MPFB_")
17-
ui_prefix = "MPFB v%d.%d-a%d" % (VERSION[0], VERSION[1], VERSION[2])
17+
18+
# For beta version. Will change back for the next nightly build
19+
ui_prefix = "MPFB v%d.%d-b1" % (VERSION[0], VERSION[1])
20+
21+
# ui_prefix = "MPFB v%d.%d-a%d" % (VERSION[0], VERSION[1], VERSION[2])
1822

1923
label = get_preference("mpfb_shelf_label")
2024
_LOG.debug("Shelf label", label)
2125
if label and not str(label).strip() == "":
2226
ui_prefix = label
2327

24-
multi = False #get_preference("multi_panel")
28+
multi = False # get_preference("multi_panel")
2529
_LOG.debug("multi_panel", multi)
2630

2731
self.set_value("UIPREFIX", ui_prefix)
@@ -169,6 +173,6 @@ def as_valid_identifier(self, raw_string):
169173
return re.sub(r'[^a-zA-Z0-9_]', "_", raw_string)
170174

171175

172-
UiService = _UiService() # pylint: disable=C0103
176+
UiService = _UiService() # pylint: disable=C0103
173177
UiService.rebuild_importer_presets_panel_list()
174178
UiService.rebuild_importer_panel_list()

0 commit comments

Comments
 (0)