Fixes
- Fixes issue with addon registration which just randomly broke at some point - Fixes issue where merge armatures decided to break due to me messing up with properties. - Fixed issue where you still had to select the mesh in the 3D Scene for viseme creation even though we have a UI selector now.
This commit is contained in:
+14
-1
@@ -370,11 +370,24 @@ class AvatarToolkitSceneProperties(PropertyGroup):
|
||||
def register() -> None:
|
||||
"""Register the Avatar Toolkit property group"""
|
||||
logger.info("Registering Avatar Toolkit properties")
|
||||
try:
|
||||
bpy.utils.register_class(AvatarToolkitSceneProperties)
|
||||
except ValueError:
|
||||
# Class already registered, we can continue
|
||||
pass
|
||||
bpy.types.Scene.avatar_toolkit = PointerProperty(type=AvatarToolkitSceneProperties)
|
||||
logger.debug("Properties registered successfully")
|
||||
|
||||
def unregister() -> None:
|
||||
"""Unregister the Avatar Toolkit property group"""
|
||||
logger.info("Unregistering Avatar Toolkit properties")
|
||||
del bpy.types.Scene.avatar_toolkit
|
||||
try:
|
||||
del bpy.types.Scene.avatar_toolkit
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
bpy.utils.unregister_class(AvatarToolkitSceneProperties)
|
||||
except RuntimeError:
|
||||
pass
|
||||
logger.debug("Properties unregistered successfully")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user