Skip to content

Commit

Permalink
UE2Rigify - Extensions Compliance 1 (poly-hammer#60)
Browse files Browse the repository at this point in the history
* extensions compliance

- preferences changed to package
- import cleanup

* release prep
  • Loading branch information
JoshQuake authored Aug 2, 2024
1 parent f9eaf7e commit 405807c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/addons/ue2rigify/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/addons/ue2rigify/blender_manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 3 additions & 2 deletions src/addons/ue2rigify/core/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down Expand Up @@ -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
Expand Down
10 changes: 3 additions & 7 deletions src/addons/ue2rigify/release_notes.md
Original file line number Diff line number Diff line change
@@ -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)
5 changes: 2 additions & 3 deletions src/addons/ue2rigify/ui/addon_preferences.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 405807c

Please sign in to comment.