diff options
author | Joshua Leung <aligorith@gmail.com> | 2017-08-17 16:03:28 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-08-18 15:53:52 +0300 |
commit | 7b397cdfc8109abde3175b88400131dda5782448 (patch) | |
tree | 6f9c8d9eccb93ab3ddf46fa5d6287da652eb2a57 | |
parent | d48f4b61c90e0c6945c18b49e1b60ea0781209a6 (diff) |
Fix T52401: "Export Keying Set" operator generated incorrect ID's for shapekeysv2.79-rc2
To be backported.
-rw-r--r-- | release/scripts/startup/bl_operators/anim.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_operators/anim.py b/release/scripts/startup/bl_operators/anim.py index 02fb05e29eb..a843c17217a 100644 --- a/release/scripts/startup/bl_operators/anim.py +++ b/release/scripts/startup/bl_operators/anim.py @@ -137,6 +137,9 @@ class ANIM_OT_keying_set_export(Operator): break else: 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: idtype_list = ksp.id.bl_rna.name.lower() + "s" id_bpy_path = "bpy.data.%s[\"%s\"]" % (idtype_list, ksp.id.name) |