Fix [#30099] Wrong python path returned. "bpy.data.keys" instead of expected "bpy...
authorBastien Montagne <montagne29@wanadoo.fr>
Tue, 7 Feb 2012 15:14:08 +0000 (15:14 +0000)
committerBastien Montagne <montagne29@wanadoo.fr>
Tue, 7 Feb 2012 15:14:08 +0000 (15:14 +0000)
The "plural" name for ID_KE was wrong in idcode.c (bke), not matching the MainCollectionDef one used in rna_main.c.

Checked the others too, everything seems ok now.

source/blender/blenkernel/intern/idcode.c

index 0824a9f..b52576e 100644 (file)
@@ -58,7 +58,7 @@ static IDType idtypes[]= {
        { ID_ID,                "ID",           "ids",                  0}, /* plural is fake */
        { ID_IM,                "Image",        "images",               IDTYPE_FLAGS_ISLINKABLE}, 
        { ID_IP,                "Ipo",          "ipos",                 IDTYPE_FLAGS_ISLINKABLE},  /* deprecated */
-       { ID_KE,                "Key",          "keys",                 0}, 
+       { ID_KE,                "Key",          "shape_keys",   0}, 
        { ID_LA,                "Lamp",         "lamps",                IDTYPE_FLAGS_ISLINKABLE}, 
        { ID_LI,                "Library",      "libraries",    0}, 
        { ID_LT,                "Lattice",      "lattices",             IDTYPE_FLAGS_ISLINKABLE},