Use Object.pose_library instead of Object.dspl.pose_library
This commit is contained in:
21
common.py
21
common.py
@ -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):
|
||||
|
Reference in New Issue
Block a user