2.5: Headers

* Fix header menu spacing bug, and make it consistent for all headers.
* For consistency, always put menus first in the header, then any enums
  to switch the type of data displayed.
* Node editor header ported to python layout. Still quite a few
  operators missing to make the menus complete.
* RNA wrapped node editor, and added use_nodes property to material
  and scene.
This commit is contained in:
2009-08-19 00:55:30 +00:00
parent e21c1dde81
commit 184ac26dd0
32 changed files with 510 additions and 747 deletions

View File

@@ -183,7 +183,7 @@ void NODE_OT_visibility_toggle(wmOperatorType *ot)
RNA_def_int(ot->srna, "mouse_y", 0, INT_MIN, INT_MAX, "Mouse Y", "", INT_MIN, INT_MAX);
}
static int node_fit_all_exec(bContext *C, wmOperator *op)
static int node_view_all_exec(bContext *C, wmOperator *op)
{
ScrArea *sa= CTX_wm_area(C);
ARegion *ar= CTX_wm_region(C);
@@ -196,11 +196,11 @@ static int node_fit_all_exec(bContext *C, wmOperator *op)
void NODE_OT_view_all(wmOperatorType *ot)
{
/* identifiers */
ot->name= "Fit All";
ot->name= "View All";
ot->idname= "NODE_OT_view_all";
/* api callbacks */
ot->exec= node_fit_all_exec;
ot->exec= node_view_all_exec;
ot->poll= ED_operator_node_active;
/* flags */