* Fix tooltip for reset default values

* Redraw 3D View tool shelf on texture changes (to reflect new brush textures)
This commit is contained in:
Matt Ebb
2010-01-03 23:46:19 +00:00
parent f02dde5de7
commit 4494ec8019
2 changed files with 5 additions and 1 deletions

View File

@@ -140,7 +140,7 @@ void UI_OT_reset_default_button(wmOperatorType *ot)
/* identifiers */
ot->name= "Reset to Default Value";
ot->idname= "UI_OT_reset_default_button";
ot->description= "Copy the RNA data path for this property to the clipboard.";
ot->description= "Reset this property's value to its default value";
/* callbacks */
ot->poll= reset_default_button_poll;

View File

@@ -636,6 +636,10 @@ static void view3d_buttons_area_listener(ARegion *ar, wmNotifier *wmn)
break;
}
break;
case NC_TEXTURE:
/* for brush textures */
ED_region_tag_redraw(ar);
break;
case NC_BRUSH:
if(wmn->action==NA_EDITED)
ED_region_tag_redraw(ar);