Fix T52401: "Export Keying Set" operator generated incorrect ID's for shapekeys
To be backported.
This commit is contained in:
@@ -137,6 +137,9 @@ class ANIM_OT_keying_set_export(Operator):
|
|||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
self.report({'WARN'}, "Could not find scene using Compositor Node Tree - %s" % (ksp.id))
|
self.report({'WARN'}, "Could not find scene using Compositor Node Tree - %s" % (ksp.id))
|
||||||
|
elif ksp.id.bl_rna.name == "Key":
|
||||||
|
# "keys" conflicts with a Python keyword, hence the simple solution won't work
|
||||||
|
id_bpy_path = "bpy.data.shape_keys[\"%s\"]" % (ksp.id.name)
|
||||||
else:
|
else:
|
||||||
idtype_list = ksp.id.bl_rna.name.lower() + "s"
|
idtype_list = ksp.id.bl_rna.name.lower() + "s"
|
||||||
id_bpy_path = "bpy.data.%s[\"%s\"]" % (idtype_list, ksp.id.name)
|
id_bpy_path = "bpy.data.%s[\"%s\"]" % (idtype_list, ksp.id.name)
|
||||||
|
Reference in New Issue
Block a user