fix for crash setting the objects layers
authorCampbell Barton <ideasman42@gmail.com>
Wed, 9 Jun 2010 15:56:50 +0000 (15:56 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 9 Jun 2010 15:56:50 +0000 (15:56 +0000)
source/blender/makesrna/intern/rna_object.c

index 5b97545c3307ce34de1445b69f251f9907788d77..f77e984cd37683e56314444f3e7db74c25373303 100644 (file)
@@ -210,7 +210,7 @@ static void rna_Object_layer_update(Main *bmain, Scene *scene, PointerRNA *ptr)
 
 static void rna_Base_layer_update(Main *bmain, Scene *scene, PointerRNA *ptr)
 {
-       Base *base= (Base*)ptr->id.data;
+       Base *base= (Base*)ptr->data;
        Object *ob= (Object*)base->object;
 
        rna_Object_layer_update__internal(scene, base, ob);