fix for invalid RNA created for the 3D viewport header (made ID reporting show incorr...
authorCampbell Barton <ideasman42@gmail.com>
Mon, 21 Oct 2013 23:46:45 +0000 (23:46 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 21 Oct 2013 23:46:45 +0000 (23:46 +0000)
source/blender/editors/space_view3d/view3d_header.c

index 094204f868b06080396dbc2009de390d412595b7..204054b24cd4f0a9a437fab4c74023707f1bc8ba 100644 (file)
@@ -356,7 +356,7 @@ void uiTemplateHeader3D(uiLayout *layout, struct bContext *C)
                        /* masks aren't used for sculpt and particle painting */
                        PointerRNA meshptr;
 
-                       RNA_pointer_create(&ob->id, &RNA_Mesh, ob->data, &meshptr);
+                       RNA_pointer_create(ob->data, &RNA_Mesh, ob->data, &meshptr);
                        if (ob->mode & (OB_MODE_TEXTURE_PAINT | OB_MODE_VERTEX_PAINT)) {
                                uiItemR(layout, &meshptr, "use_paint_mask", UI_ITEM_R_ICON_ONLY, "", ICON_NONE);
                        }