diff --git a/src/addons/ue2rigify/__init__.py b/src/addons/ue2rigify/__init__.py index 14fcc43a..e2c7f1b0 100644 --- a/src/addons/ue2rigify/__init__.py +++ b/src/addons/ue2rigify/__init__.py @@ -13,7 +13,7 @@ "name": "UE to Rigify", "author": "Epic Games Inc (now a community fork)", "description": "Allows you to drive a given rig and its animations with a Rigify rig.", - "version": (1, 7, 0), + "version": (1, 7, 1), "blender": (3, 6, 0), "location": "3D View > Tools > UE to Rigify", "wiki_url": "https://poly-hammer.github.io/BlenderTools/ue2rigify", diff --git a/src/addons/ue2rigify/blender_manifest.toml b/src/addons/ue2rigify/blender_manifest.toml index 86a4b3ba..c3afe933 100644 --- a/src/addons/ue2rigify/blender_manifest.toml +++ b/src/addons/ue2rigify/blender_manifest.toml @@ -2,7 +2,7 @@ schema_version = "1.0.0" id = "ue2rigify" name = "UE to Rigify" tagline = "Allows you to drive a given rig and animations with a Rigify rig" -version = "1.7.0" +version = "1.7.1" type = "add-on" tags = ["Pipeline"] blender_version_min = "4.2.0" diff --git a/src/addons/ue2rigify/core/utilities.py b/src/addons/ue2rigify/core/utilities.py index e0b3c9c1..da54565f 100644 --- a/src/addons/ue2rigify/core/utilities.py +++ b/src/addons/ue2rigify/core/utilities.py @@ -3,8 +3,9 @@ import re import os from . import scene, templates -from ..constants import Viewport, Modes, Rigify, Template, ToolInfo +from ..constants import Viewport, Modes, Rigify, Template from mathutils import Vector, Quaternion +from .. import __package__ as base_package def get_modes(): @@ -1186,7 +1187,7 @@ def get_rigify_bone_operator(un_hashed_operator_name, bone_name, properties): return f'bpy.ops.{operator}({output_bones}, {input_bones}, {ctrl_bones})' def get_rig_template_path(): - preferences = bpy.context.preferences.addons.get(ToolInfo.NAME.value).preferences + preferences = bpy.context.preferences.addons.get(base_package).preferences template_path = preferences.custom_rig_template_path # If custom_rig_template_path is empty, returns Temp folder diff --git a/src/addons/ue2rigify/release_notes.md b/src/addons/ue2rigify/release_notes.md index d69cf3e7..8f2d0684 100644 --- a/src/addons/ue2rigify/release_notes.md +++ b/src/addons/ue2rigify/release_notes.md @@ -1,13 +1,9 @@ -## Minor Changes -* Added custom template location support - * [51](https://github.com/poly-hammer/BlenderTools/pull/51) - ## Patch Changes -* Removed legacy undo - * [41](https://github.com/poly-hammer/BlenderTools/pull/41) +* Extensions compliance update + * [60](https://github.com/poly-hammer/BlenderTools/pull/60) ## Special Thanks -* @alexander94dmitriev (First implementation of #51), @JoshQuake +* @JoshQuake ## Tests Passing On * Blender `3.6`, `4.0`, `4.1`, `4.2` (installed from blender.org) \ No newline at end of file diff --git a/src/addons/ue2rigify/ui/addon_preferences.py b/src/addons/ue2rigify/ui/addon_preferences.py index 828e1fd2..15e61947 100644 --- a/src/addons/ue2rigify/ui/addon_preferences.py +++ b/src/addons/ue2rigify/ui/addon_preferences.py @@ -1,15 +1,14 @@ # Copyright Epic Games, Inc. All Rights Reserved. import bpy -from ..constants import ToolInfo from ..core import templates - +from .. import __package__ class Ue2RigifyAddonPreferences(bpy.types.AddonPreferences): """ This class subclasses the AddonPreferences class to create the addon preferences interface. """ - bl_idname = ToolInfo.NAME.value + bl_idname = __package__ def get_custom_location(self): # create key if doesn't exist then return