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:
authormeta-androcto <meta.androcto1@gmail.com>2019-01-31 02:00:43 +0300
committermeta-androcto <meta.androcto1@gmail.com>2019-01-31 02:00:43 +0300
commit9b904ee25df87abf5e7292f8cc8eaae4a464db60 (patch)
tree8a69e4e75793d0dc746af1b48d74be314a968097 /space_view3d_modifier_tools.py
parent4e8ddec4e1be8e67da90fe244707fb2077837604 (diff)
Update Modifier tools and 3d navigation T61000
Diffstat (limited to 'space_view3d_modifier_tools.py')
-rw-r--r--space_view3d_modifier_tools.py20
1 files changed, 15 insertions, 5 deletions
diff --git a/space_view3d_modifier_tools.py b/space_view3d_modifier_tools.py
index 8ae67528..028380f0 100644
--- a/space_view3d_modifier_tools.py
+++ b/space_view3d_modifier_tools.py
@@ -20,8 +20,8 @@
bl_info = {
"name": "Modifier Tools",
"author": "Meta Androcto, saidenka",
- "version": (0, 2, 5),
- "blender": (2, 77, 0),
+ "version": (0, 2, 6),
+ "blender": (2, 80, 0),
"location": "Properties > Modifiers",
"description": "Modifiers Specials Show/Hide/Apply Selected",
"warning": "",
@@ -262,9 +262,18 @@ def menu_func(self, context):
icon='IMPORT',
text="Apply All Modifiers")
+# Register
+classes = [
+ ApplyAllModifiers,
+ DeleteAllModifiers,
+ ToggleApplyModifiersView,
+ ToggleAllShowExpanded,
+]
def register():
- bpy.utils.register_module(__name__)
+ from bpy.utils import register_class
+ for cls in classes:
+ register_class(cls)
# Add "Specials" menu to the "Modifiers" menu
bpy.types.DATA_PT_modifiers.prepend(menu)
@@ -280,8 +289,9 @@ def unregister():
# Remove apply operator to the Apply 3D View Menu
bpy.types.VIEW3D_MT_object_apply.remove(menu_func)
- bpy.utils.unregister_module(__name__)
-
+ from bpy.utils import unregister_class
+ for cls in reversed(classes):
+ unregister_class(cls)
if __name__ == "__main__":
register()