Fixed a bug where actions would not be considered to be "for" an armature if its only F-Curve data was for custom properties on a bone
This commit is contained in:
@@ -280,7 +280,7 @@ class PsaExportOperator(Operator, ExportHelper):
|
|||||||
return False
|
return False
|
||||||
bone_names = set([x.name for x in self.armature.data.bones])
|
bone_names = set([x.name for x in self.armature.data.bones])
|
||||||
for fcurve in action.fcurves:
|
for fcurve in action.fcurves:
|
||||||
match = re.match(r'pose\.bones\["(.+)"].\w+', fcurve.data_path)
|
match = re.match(r'pose\.bones\[\"([^\"]+)\"](\[\"([^\"]+)\"])?', fcurve.data_path)
|
||||||
if not match:
|
if not match:
|
||||||
continue
|
continue
|
||||||
bone_name = match.group(1)
|
bone_name = match.group(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user