fix for invalid RNA created for the 3D viewport header (made ID reporting show incorrectly).

This commit is contained in:
Campbell Barton 2013-10-21 23:46:45 +00:00
parent 7c8c49a34a
commit cb8d53efcc
1 changed files with 1 additions and 1 deletions

View 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);
}