Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-02-22 20:52:06 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-02-22 20:52:06 +0400
commit1955407f7e85cc05601bc952f12de8464ee78ffa (patch)
tree86088aea5c02db3349af231b994c5fdc8513ee8a /source/blender/editors/space_view3d/view3d_toolbar.c
parent34e2fb40c75f92532bdb4ceae955b38c998904ae (diff)
code cleanyp - no functional changes.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_toolbar.c')
-rw-r--r--source/blender/editors/space_view3d/view3d_toolbar.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/source/blender/editors/space_view3d/view3d_toolbar.c b/source/blender/editors/space_view3d/view3d_toolbar.c
index e14946da28a..355febcde5d 100644
--- a/source/blender/editors/space_view3d/view3d_toolbar.c
+++ b/source/blender/editors/space_view3d/view3d_toolbar.c
@@ -78,14 +78,14 @@ static void view3d_panel_operator_redo_header(const bContext *C, Panel *pa)
{
wmOperator *op= WM_operator_last_redo(C);
- if(op) BLI_strncpy(pa->drawname, op->type->name, sizeof(pa->drawname));
+ if (op) BLI_strncpy(pa->drawname, op->type->name, sizeof(pa->drawname));
else BLI_strncpy(pa->drawname, IFACE_("Operator"), sizeof(pa->drawname));
}
static void view3d_panel_operator_redo_operator(const bContext *C, Panel *pa, wmOperator *op)
{
- if(op->type->flag & OPTYPE_MACRO) {
- for(op= op->macro.first; op; op= op->next) {
+ if (op->type->flag & OPTYPE_MACRO) {
+ for (op= op->macro.first; op; op= op->next) {
uiItemL(pa->layout, op->type->name, ICON_NONE);
view3d_panel_operator_redo_operator(C, pa, op);
}
@@ -101,9 +101,9 @@ static void view3d_panel_operator_redo(const bContext *C, Panel *pa)
wmOperator *op= WM_operator_last_redo(C);
uiBlock *block;
- if(op==NULL)
+ if (op==NULL)
return;
- if(WM_operator_poll((bContext*)C, op->type) == 0)
+ if (WM_operator_poll((bContext*)C, op->type) == 0)
return;
block= uiLayoutGetBlock(pa->layout);
@@ -129,7 +129,7 @@ static void operator_call_cb(struct bContext *C, void *arg_listbase, void *arg2)
{
wmOperatorType *ot= arg2;
- if(ot) {
+ if (ot) {
CustomTool *ct= MEM_callocN(sizeof(CustomTool), "CustomTool");
BLI_addtail(arg_listbase, ct);
@@ -143,13 +143,13 @@ static void operator_search_cb(const struct bContext *C, void *UNUSED(arg), cons
{
GHashIterator *iter= WM_operatortype_iter();
- for( ; !BLI_ghashIterator_isDone(iter); BLI_ghashIterator_step(iter)) {
+ for ( ; !BLI_ghashIterator_isDone(iter); BLI_ghashIterator_step(iter)) {
wmOperatorType *ot= BLI_ghashIterator_getValue(iter);
- if(BLI_strcasestr(ot->name, str)) {
- if(WM_operator_poll((bContext*)C, ot)) {
+ if (BLI_strcasestr(ot->name, str)) {
+ if (WM_operator_poll((bContext*)C, ot)) {
- if(0==uiSearchItemAdd(items, ot->name, ot, 0))
+ if (0==uiSearchItemAdd(items, ot->name, ot, 0))
break;
}
}
@@ -201,14 +201,14 @@ static void view3d_panel_tool_shelf(const bContext *C, Panel *pa)
uiLayout *col;
const char *context= CTX_data_mode_string(C);
- if(sl)
+ if (sl)
st= BKE_spacetype_from_id(sl->spacetype);
- if(st && st->toolshelf.first) {
+ if (st && st->toolshelf.first) {
CustomTool *ct;
- for(ct= st->toolshelf.first; ct; ct= ct->next) {
- if(0==strncmp(context, ct->context, OP_MAX_TYPENAME)) {
+ for (ct= st->toolshelf.first; ct; ct= ct->next) {
+ if (0==strncmp(context, ct->context, OP_MAX_TYPENAME)) {
col= uiLayoutColumn(pa->layout, 1);
uiItemFullO(col, ct->opname, NULL, ICON_NONE, NULL, WM_OP_INVOKE_REGION_WIN, 0);
}
@@ -249,7 +249,7 @@ static int view3d_toolshelf(bContext *C, wmOperator *UNUSED(op))
ScrArea *sa= CTX_wm_area(C);
ARegion *ar= view3d_has_tools_region(sa);
- if(ar)
+ if (ar)
ED_region_toggle_hidden(C, ar);
return OPERATOR_FINISHED;