Fix missing brush texture mask in texture properties, for cycles. Handling this

properly with blender internal is probably for after release, when we can add
the same system to gather textures from brushes, modifiers, force fields, ...
This commit is contained in:
Brecht Van Lommel 2013-05-01 12:58:37 +00:00
parent 2c662f8be8
commit 4b0051b59c

@ -239,11 +239,19 @@ static void buttons_texture_users_from_context(ListBase *users, const bContext *
PointerRNA ptr;
PropertyRNA *prop;
/* texture */
RNA_pointer_create(&brush->id, &RNA_BrushTextureSlot, &brush->mtex, &ptr);
prop = RNA_struct_find_property(&ptr, "texture");
buttons_texture_user_property_add(users, &brush->id, ptr, prop,
"Brush", ICON_BRUSH_DATA, brush->id.name + 2);
"Brush", ICON_BRUSH_DATA, "Brush");
/* mask texture */
RNA_pointer_create(&brush->id, &RNA_BrushTextureSlot, &brush->mask_mtex, &ptr);
prop = RNA_struct_find_property(&ptr, "texture");
buttons_texture_user_property_add(users, &brush->id, ptr, prop,
"Brush", ICON_BRUSH_DATA, "Brush Mask");
}
}