diff options
author | lijenstina <lijenstina@gmail.com> | 2017-08-01 16:16:22 +0300 |
---|---|---|
committer | lijenstina <lijenstina@gmail.com> | 2017-08-01 16:16:22 +0300 |
commit | 2ec5205be7ff9b49c4613a8747fc738181ed43df (patch) | |
tree | 409666972cb4e684272240d5887e34974494aeb0 /oscurart_tools/__init__.py | |
parent | 059aa141639c93f075f2d75b5ff509d590a7219b (diff) |
Oscurart Tools: Fix reload, some oscurart_meshes crashes
Bumped version to 3.5.2
As a part of the task T51547:
Fix the operators being not accessible after an F8 reload
by adding the importlib.reload support
Fix crashes related to:
resymVertexGroups Operator
check for Vertex Groups, Edit Mode
OscResymMesh Operator
outdated internal index table
Diffstat (limited to 'oscurart_tools/__init__.py')
-rw-r--r-- | oscurart_tools/__init__.py | 37 |
1 files changed, 24 insertions, 13 deletions
diff --git a/oscurart_tools/__init__.py b/oscurart_tools/__init__.py index b55fab49..72a40a3d 100644 --- a/oscurart_tools/__init__.py +++ b/oscurart_tools/__init__.py @@ -21,7 +21,7 @@ bl_info = { "name": "Oscurart Tools", "author": "Oscurart, CodemanX", - "version": (3, 5, 1), + "version": (3, 5, 2), "blender": (2, 77, 0), "location": "View3D > Tools > Oscurart Tools", "description": "Tools for objects, render, shapes, and files.", @@ -31,15 +31,26 @@ bl_info = { "category": "Object", } -import bpy +if "bpy" in locals(): + import importlib + importlib.reload(oscurart_files) + importlib.reload(oscurart_meshes) + importlib.reload(oscurart_objects) + importlib.reload(oscurart_shapes) + importlib.reload(oscurart_render) + importlib.reload(oscurart_overrides) + importlib.reload(oscurart_animation) + +else: + from . import oscurart_files + from . import oscurart_meshes + from . import oscurart_objects + from . import oscurart_shapes + from . import oscurart_render + from . import oscurart_overrides + from . import oscurart_animation -from . import oscurart_files -from . import oscurart_meshes -from . import oscurart_objects -from . import oscurart_shapes -from . import oscurart_render -from . import oscurart_overrides -from . import oscurart_animation +import bpy from bpy.types import ( AddonPreferences, @@ -59,7 +70,7 @@ class View3DOscPanel(PropertyGroup): bl_space_type = 'VIEW_3D' bl_region_type = 'TOOLS' - # CREA PANELES EN TOOLS + # Create Panels and Tools osc_object_tools = BoolProperty(default=False) osc_mesh_tools = BoolProperty(default=False) osc_shapes_tools = BoolProperty(default=False) @@ -68,7 +79,7 @@ class View3DOscPanel(PropertyGroup): osc_overrides_tools = BoolProperty(default=False) osc_animation_tools = BoolProperty(default=False) - # PARA ESCENAS NUEVAS + # For new Scenes overrides = StringProperty(default="[]") @@ -77,7 +88,7 @@ class OscOverridesProp(PropertyGroup): grooverride = StringProperty() -# PANELES +# Panels class OscPanelControl(Panel): bl_idname = "Oscurart Panel Control" bl_space_type = 'VIEW_3D' @@ -418,7 +429,7 @@ class OscurartToolsAddonPreferences(AddonPreferences): col.label(text="Category:") col.prop(self, "category", text="") -# ========================= FIN DE SCRIPTS ========================= +# ========================= End of Scripts ========================= def register(): |