diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-12-30 10:32:14 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-12-30 10:32:14 +0300 |
commit | d6e8cd42325d763b65219c6652343a4a4c3a7489 (patch) | |
tree | 32e003dbc711302d3003560c9874f8312a0300fe /source/blender/editors | |
parent | 090807066c58943a817eaea74d7358534fad5070 (diff) |
2.5: fix compile error on mac, and a few warnings.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/interface/interface.c | 4 | ||||
-rw-r--r-- | source/blender/editors/object/object_edit.c | 7 | ||||
-rw-r--r-- | source/blender/editors/space_node/drawnode.c | 4 | ||||
-rw-r--r-- | source/blender/editors/space_view3d/view3d_header.c | 2 | ||||
-rw-r--r-- | source/blender/editors/space_view3d/view3d_select.c | 3 |
5 files changed, 7 insertions, 13 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index 534f13b984f..d1aad05294d 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -2108,6 +2108,8 @@ uiBut *ui_def_but_operator(bContext *C, uiBlock *block, int type, char *opname, str= (ot)? ot->name: ""; } + butstr= str; + if(type == BUTM) { if(WM_key_event_operator_string(C, opname, opcontext, buf, sizeof(buf))) { butstr= MEM_mallocN(strlen(str)+strlen(buf)+2, "ui_def_but_operator"); @@ -2115,8 +2117,6 @@ uiBut *ui_def_but_operator(bContext *C, uiBlock *block, int type, char *opname, strcat(butstr, "|"); strcat(butstr, buf); } - else - butstr= str; } but= ui_def_but(block, type, -1, butstr, x1, y1, x2, y2, NULL, 0, 0, 0, 0, tip); diff --git a/source/blender/editors/object/object_edit.c b/source/blender/editors/object/object_edit.c index f3cd39bffe5..397dc352a94 100644 --- a/source/blender/editors/object/object_edit.c +++ b/source/blender/editors/object/object_edit.c @@ -1120,9 +1120,6 @@ void OBJECT_OT_select_by_layer(wmOperatorType *ot) /* ****** invert selection *******/ static int object_select_invert_exec(bContext *C, wmOperator *op) { - ScrArea *sa= CTX_wm_area(C); - View3D *v3d= sa->spacedata.first; - CTX_DATA_BEGIN(C, Base*, base, visible_bases) { if (base->flag & SELECT) ED_base_object_select(base, BA_DESELECT); @@ -1153,8 +1150,6 @@ void OBJECT_OT_select_invert(wmOperatorType *ot) static int object_de_select_all_exec(bContext *C, wmOperator *op) { - ScrArea *sa= CTX_wm_area(C); - View3D *v3d= sa->spacedata.first; int a=0, ok=0; CTX_DATA_BEGIN(C, Base*, base, visible_bases) { @@ -1196,8 +1191,6 @@ void OBJECT_OT_de_select_all(wmOperatorType *ot) static int object_select_random_exec(bContext *C, wmOperator *op) { - ScrArea *sa= CTX_wm_area(C); - View3D *v3d= sa->spacedata.first; int percent; percent = RNA_int_get(op->ptr, "percent"); diff --git a/source/blender/editors/space_node/drawnode.c b/source/blender/editors/space_node/drawnode.c index 4f1cb7a5a68..61c53fb58d3 100644 --- a/source/blender/editors/space_node/drawnode.c +++ b/source/blender/editors/space_node/drawnode.c @@ -178,7 +178,7 @@ static void node_ID_title_cb(bContext *C, void *node_v, void *unused_v) static void node_but_title_cb(bContext *C, void *node_v, void *but_v) { - bNode *node= node_v; + // bNode *node= node_v; // XXX uiBut *bt= but_v; // XXX BLI_strncpy(node->name, bt->drawstr, NODE_MAXSTR); @@ -2199,6 +2199,8 @@ static int node_texture_buts_proc(uiBlock *block, bNodeTree *ntree, bNode *node, w = butr->xmax - x; h = butr->ymax - y; } + else + return 0; switch( tex->type ) { case TEX_BLEND: diff --git a/source/blender/editors/space_view3d/view3d_header.c b/source/blender/editors/space_view3d/view3d_header.c index 8960ed7b8e4..fbf437e5599 100644 --- a/source/blender/editors/space_view3d/view3d_header.c +++ b/source/blender/editors/space_view3d/view3d_header.c @@ -231,7 +231,7 @@ void do_layer_buttons(bContext *C, short event) static void do_view3d_view_camerasmenu(bContext *C, void *arg, int event) { Scene *scene= CTX_data_scene(C); - View3D *v3d; + View3D *v3d= (View3D*)CTX_wm_space_data(C); Base *base; int i=1; diff --git a/source/blender/editors/space_view3d/view3d_select.c b/source/blender/editors/space_view3d/view3d_select.c index 6464ed48b06..a06fb5a6741 100644 --- a/source/blender/editors/space_view3d/view3d_select.c +++ b/source/blender/editors/space_view3d/view3d_select.c @@ -854,7 +854,6 @@ static void mouse_select(bContext *C, short *mval, short modifier) unsigned int buffer[4*MAXPICKBUF]; int temp, a, dist=100; short hits; - short ctrl=0, shift=0, alt=0; /* always start list from basact in wire mode */ startbase= FIRSTBASE; @@ -1443,7 +1442,7 @@ static int view3d_select_invoke(bContext *C, wmOperator *op, wmEvent *event) view3d_operator_needs_opengl(C); - mouse_select(C, mval, NULL); + mouse_select(C, mval, 0); return OPERATOR_FINISHED; } |