fix for crash when setting a shapekeys name in rna, (probably other properties too).
[blender.git] / source / blender / makesrna / intern / rna_object.c
index 0a4fa71c0061a891507a0aacfc7d4cfb31a8e249..e87edabbcdfb3dd596e84361dce333d9691f6fb0 100644 (file)
@@ -930,7 +930,7 @@ static PointerRNA rna_Object_active_shape_key_get(PointerRNA *ptr)
                return PointerRNA_NULL;
        
        kb= BLI_findlink(&key->block, ob->shapenr-1);
-       RNA_pointer_create(&key->id, &RNA_ShapeKey, kb, &keyptr);
+       RNA_pointer_create((ID *)ob->data, &RNA_ShapeKey, kb, &keyptr);
        return keyptr;
 }