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:
authorSybren A. Stüvel <sybren@stuvel.eu>2021-07-19 16:58:57 +0300
committerSybren A. Stüvel <sybren@stuvel.eu>2021-07-19 16:58:57 +0300
commit1adb56d8b01cf1327f58c6fb8b1ccc8b7efd76ad (patch)
treea9a7338e88619a5c0cdc0a73d2d524faf3f20cc2 /pose_library
parent756aa930b12bbb16e5ac75b7c9034e36ed61f730 (diff)
Pose Library: remove unused macros
Remove macro operators that were once used in the default keymap. It was decided to remove them as the "select an asset and then run an operator on it" approach was too easy to break.
Diffstat (limited to 'pose_library')
-rw-r--r--pose_library/__init__.py5
-rw-r--r--pose_library/macros.py61
2 files changed, 1 insertions, 65 deletions
diff --git a/pose_library/__init__.py b/pose_library/__init__.py
index 1105065b..a1820cf0 100644
--- a/pose_library/__init__.py
+++ b/pose_library/__init__.py
@@ -36,14 +36,13 @@ bl_info = {
from typing import List, Tuple
_need_reload = "operators" in locals()
-from . import gui, keymaps, macros, operators, conversion
+from . import gui, keymaps, operators, conversion
if _need_reload:
import importlib
gui = importlib.reload(gui)
keymaps = importlib.reload(keymaps)
- macros = importlib.reload(macros)
operators = importlib.reload(operators)
conversion = importlib.reload(conversion)
@@ -60,7 +59,6 @@ def register() -> None:
bpy.types.WindowManager.poselib_previous_action = bpy.props.PointerProperty(type=bpy.types.Action)
operators.register()
- macros.register()
keymaps.register()
gui.register()
@@ -68,7 +66,6 @@ def register() -> None:
def unregister() -> None:
gui.unregister()
keymaps.unregister()
- macros.unregister()
operators.unregister()
try:
diff --git a/pose_library/macros.py b/pose_library/macros.py
deleted file mode 100644
index 35f33308..00000000
--- a/pose_library/macros.py
+++ /dev/null
@@ -1,61 +0,0 @@
-# ##### BEGIN GPL LICENSE BLOCK #####
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software Foundation,
-# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-#
-# ##### END GPL LICENSE BLOCK #####
-
-"""
-Pose Library - macros.
-"""
-
-import bpy
-
-
-class POSELIB_OT_select_asset_and_select_bones(bpy.types.Macro):
- bl_idname = "poselib.select_asset_and_select_bones"
- bl_label = "Select Pose & Select Bones"
-
-
-class POSELIB_OT_select_asset_and_deselect_bones(bpy.types.Macro):
- bl_idname = "poselib.select_asset_and_deselect_bones"
- bl_label = "Select Pose & Deselect Bones"
-
-
-classes = (
- POSELIB_OT_select_asset_and_select_bones,
- POSELIB_OT_select_asset_and_deselect_bones,
-)
-
-_register, _unregister = bpy.utils.register_classes_factory(classes)
-
-
-def register() -> None:
- _register()
-
- step = POSELIB_OT_select_asset_and_select_bones.define("FILE_OT_select")
- step.properties.open = False
- step.properties.deselect_all = True
- step = POSELIB_OT_select_asset_and_select_bones.define("POSELIB_OT_pose_asset_select_bones")
- step.properties.select = True
-
- step = POSELIB_OT_select_asset_and_deselect_bones.define("FILE_OT_select")
- step.properties.open = False
- step.properties.deselect_all = True
- step = POSELIB_OT_select_asset_and_deselect_bones.define("POSELIB_OT_pose_asset_select_bones")
- step.properties.select = False
-
-
-def unregister() -> None:
- _unregister()