Fix [#20671] No access to creating textures for a material

Caused by my previous commit here.
This commit is contained in:
Matt Ebb 2010-01-14 10:43:53 +00:00
parent e8c4be18a8
commit fffbb2c7eb

View File

@ -339,10 +339,10 @@ static int buttons_context_path_texture(const bContext *C, ButsContextPath *path
return 1;
}
/* try brush */
if(buttons_context_path_brush(C, path)) {
if((path->flag & SB_BRUSH_TEX) && buttons_context_path_brush(C, path)) {
br= path->ptr[path->len-1].data;
if(br && (path->flag & SB_BRUSH_TEX)) {
if(br) {
tex= give_current_brush_texture(br);
RNA_id_pointer_create(&tex->id, &path->ptr[path->len]);