Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2017-08-17 16:03:28 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-08-18 15:53:52 +0300
commit7b397cdfc8109abde3175b88400131dda5782448 (patch)
tree6f9c8d9eccb93ab3ddf46fa5d6287da652eb2a57
parentd48f4b61c90e0c6945c18b49e1b60ea0781209a6 (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.py3
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)