Use Object.pose_library instead of Object.dspl.pose_library

This commit is contained in:
2024-12-28 04:50:52 -06:00
committed by Blazer Silving
parent b2fc121a88
commit d008e4750c
4 changed files with 42 additions and 37 deletions

View File

@ -14,18 +14,27 @@ def getArmatureObject(context):
def getLegacyPoseLibrary(context):
arm = getArmatureObject(context)
return getattr(arm, "pose_library", None)
try:
arm = getArmatureObject(context)
return getattr(arm, "pose_library", None)
except:
pass
def getArmatureAction(context):
arm = getArmatureObject(context)
return getattr(arm.animation_data, "action", None)
try:
arm = getArmatureObject(context)
return getattr(arm.animation_data, "action", None)
except:
pass
def getDsplAction(context):
arm = getArmatureObject(context)
return getattr(arm.dspl, "pose_library", None)
try:
arm = getArmatureObject(context)
return getattr(arm.dspl, "pose_library", None)
except:
pass
def getPoseLib(context):