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-03-24 10:38:07 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-03-24 10:38:07 +0400
commitab4a2aaf4a4b2b4e416aa1f113b30362cbe0dec3 (patch)
tree81af4c18519181490074508dbe9a8d515eab634f /source/blender/editors/space_api
parent5a90ea77bc1333efe4e1e54984a080550ed3f707 (diff)
style cleanup: follow style guide for formatting of if/for/while loops, and else if's
Diffstat (limited to 'source/blender/editors/space_api')
-rw-r--r--source/blender/editors/space_api/spacetypes.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/source/blender/editors/space_api/spacetypes.c b/source/blender/editors/space_api/spacetypes.c
index b876003c059..31243184961 100644
--- a/source/blender/editors/space_api/spacetypes.c
+++ b/source/blender/editors/space_api/spacetypes.c
@@ -117,8 +117,8 @@ void ED_spacetypes_init(void)
/* register operators */
spacetypes = BKE_spacetypes_list();
- for(type=spacetypes->first; type; type=type->next) {
- if(type->operatortypes)
+ for (type=spacetypes->first; type; type=type->next) {
+ if (type->operatortypes)
type->operatortypes();
}
@@ -136,8 +136,8 @@ void ED_spacetypes_init(void)
/* register dropboxes (can use macros) */
spacetypes = BKE_spacetypes_list();
- for(type=spacetypes->first; type; type=type->next) {
- if(type->dropboxes)
+ for (type=spacetypes->first; type; type=type->next) {
+ if (type->dropboxes)
type->dropboxes();
}
@@ -169,11 +169,11 @@ void ED_spacetypes_keymap(wmKeyConfig *keyconf)
UI_view2d_keymap(keyconf);
spacetypes = BKE_spacetypes_list();
- for(stype=spacetypes->first; stype; stype=stype->next) {
- if(stype->keymap)
+ for (stype=spacetypes->first; stype; stype=stype->next) {
+ if (stype->keymap)
stype->keymap(keyconf);
- for(atype=stype->regiontypes.first; atype; atype=atype->next) {
- if(atype->keymap)
+ for (atype=stype->regiontypes.first; atype; atype=atype->next) {
+ if (atype->keymap)
atype->keymap(keyconf);
}
}
@@ -209,8 +209,8 @@ void ED_region_draw_cb_exit(ARegionType *art, void *handle)
{
RegionDrawCB *rdc;
- for(rdc= art->drawcalls.first; rdc; rdc= rdc->next) {
- if(rdc==(RegionDrawCB *)handle) {
+ for (rdc= art->drawcalls.first; rdc; rdc= rdc->next) {
+ if (rdc==(RegionDrawCB *)handle) {
BLI_remlink(&art->drawcalls, rdc);
MEM_freeN(rdc);
return;
@@ -227,8 +227,8 @@ void ED_region_draw_cb_draw(const bContext *C, ARegion *ar, int type)
{
RegionDrawCB *rdc;
- for(rdc= ar->type->drawcalls.first; rdc; rdc= rdc->next) {
- if(rdc->type==type)
+ for (rdc= ar->type->drawcalls.first; rdc; rdc= rdc->next) {
+ if (rdc->type==type)
rdc->draw(C, ar, rdc->customdata);
}
}