fix for shape key value not updating.
authorCampbell Barton <ideasman42@gmail.com>
Wed, 3 Feb 2010 10:27:31 +0000 (10:27 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 3 Feb 2010 10:27:31 +0000 (10:27 +0000)
source/blender/makesrna/intern/rna_object.c

index a8c9888e25fefa6694353f9758c66d694d6b979c..53e9dae546bd572ed0bb4daa1eb0dd5ceafb95eb 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((ID *)ob->data, &RNA_ShapeKey, kb, &keyptr);
+       RNA_pointer_create((ID *)key, &RNA_ShapeKey, kb, &keyptr);
        return keyptr;
 }