Fix [#23944] Missing update of 3D view when toggling visibility of object in outliner with keyboard

Reported and patched by Torsten Rupp (patch [#23895])

Also fixed typo in toggle visibility operator name
This commit is contained in:
Nathan Letwory
2010-09-22 06:58:51 +00:00
parent 1632db7b71
commit f82f3f235e

View File

@@ -1573,13 +1573,15 @@ static int outliner_toggle_visibility_exec(bContext *C, wmOperator *op)
ED_region_tag_redraw(ar);
WM_event_add_notifier(C, NC_SCENE|ND_OB_SELECT, scene);
return OPERATOR_FINISHED;
}
void OUTLINER_OT_visibility_toggle(wmOperatorType *ot)
{
/* identifiers */
ot->name= "Toggle Visability";
ot->name= "Toggle Visibility";
ot->idname= "OUTLINER_OT_visibility_toggle";
ot->description= "Toggle the visibility of selected items";