Skip to content

Commit

Permalink
port 278 - version 021 - Reapplied the Blender 2.78 changes to the __…
Browse files Browse the repository at this point in the history
  • Loading branch information
ReinerBforartists committed Jan 25, 2017
1 parent 9789743 commit be55912
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions release/scripts/startup/bl_ui/__init__.py
Expand Up @@ -20,9 +20,10 @@

# note, properties_animviz is a helper module only.

# support reloading sub-modules
if "bpy" in locals():
from importlib import reload
for val in _modules_loaded.values():
for val in _modules_loaded:
reload(val)
del reload
_modules = [
Expand Down Expand Up @@ -78,16 +79,17 @@
"space_userpref",
"space_view3d",
"space_view3d_toolbar",
"space_toolbar",
#"space_toolbar",
]

import bpy

if bpy.app.build_options.freestyle:
_modules.append("properties_freestyle")

__import__(name=__name__, fromlist=_modules)
_namespace = globals()
_modules_loaded = {name: _namespace[name] for name in _modules if name != "bpy"}
_modules_loaded = [_namespace[name] for name in _modules]
del _namespace

# bfa - text or icon buttons, the prop
Expand Down Expand Up @@ -487,7 +489,7 @@ def addon_filter_items(self, context):
WindowManager.addon_filter = EnumProperty(
items=addon_filter_items,
name="Category",
description="Filter addons by category",
description="Filter add-ons by category",
)

WindowManager.addon_support = EnumProperty(
Expand Down

0 comments on commit be55912

Please sign in to comment.