diff options
author | Joshua Leung <aligorith@gmail.com> | 2017-08-17 16:03:28 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2017-08-17 16:03:28 +0300 |
commit | 743bacaa6f4e7dd4b621b8b908513ea6ce7b18e4 (patch) | |
tree | 4c2138496470a8f6f5f95af589985121dfebc972 /release | |
parent | 8141eac2f8fe244bcd27b979daa7e74550cf39ec (diff) |
Fix T52401: "Export Keying Set" operator generated incorrect ID's for shapekeys
To be backported.
Diffstat (limited to 'release')
-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) |