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>2010-01-08 05:02:52 +0300
committerJoshua Leung <aligorith@gmail.com>2010-01-08 05:02:52 +0300
commit28b1824fd035ba56138846027290388ea373c1a4 (patch)
tree72932b1019fb31d7f39e1ebef1d3ed4d5b6c9fb3 /source/blender/makesrna
parentcddd784e44c8ee4e7be535a4d105b8ebb65a304f (diff)
Bugfix #20605: Shape key values not keyable from mesh data panel. Keyable from Datablock browser.
See the bugreport comments for full breakdown of the fix. -- The change in brush.c is to get blender compiling again, after my previous commit which tried to fix a compiler warning related to this (but in the header file instead).
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r--source/blender/makesrna/intern/rna_key.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_key.c b/source/blender/makesrna/intern/rna_key.c
index 9e560a50af0..6ff961070b9 100644
--- a/source/blender/makesrna/intern/rna_key.c
+++ b/source/blender/makesrna/intern/rna_key.c
@@ -283,7 +283,13 @@ static PointerRNA rna_ShapeKey_data_get(CollectionPropertyIterator *iter)
static char *rna_ShapeKey_path(PointerRNA *ptr)
{
- return BLI_sprintfN("keys[\"%s\"]", ((KeyBlock*)ptr->data)->name);
+ KeyBlock *kb= (KeyBlock *)ptr->data;
+ ID *id= ptr->id.data;
+
+ if ((id) && (GS(id->name) != ID_KE))
+ return BLI_sprintfN("shape_keys.keys[\"%s\"]", kb->name);
+ else
+ return BLI_sprintfN("keys[\"%s\"]", kb->name);
}
static void rna_Key_update_data(Main *bmain, Scene *scene, PointerRNA *ptr)