style cleanup

This commit is contained in:
Campbell Barton
2012-12-01 07:58:27 +00:00
parent b290f9a6cc
commit 0da227cac1
3 changed files with 4 additions and 4 deletions

View File

@@ -279,7 +279,7 @@ static void setup_app_data(bContext *C, BlendFileData *bfd, const char *filepath
/* this can happen when active scene was lib-linked, and doesn't exist anymore */
if (CTX_data_scene(C) == NULL) {
/* in case we don't even have a local scene, add one */
if(!G.main->scene.first)
if (!G.main->scene.first)
BKE_scene_add("Scene");
CTX_data_scene_set(C, G.main->scene.first);

View File

@@ -500,7 +500,7 @@ void BLI_bpath_traverse_id(Main *bmain, ID *id, BPathVisitor visit_cb, const int
Material *ma = (Material *)id;
bNodeTree *ntree = ma->nodetree;
if(ntree) {
if (ntree) {
bNode *node;
for (node = ntree->nodes.first; node; node = node->next) {

View File

@@ -560,10 +560,10 @@ static int screen_render_invoke(bContext *C, wmOperator *op, wmEvent *event)
rj->iuser.ok = 1;
rj->reports = op->reports;
if(v3d) {
if (v3d) {
rj->lay = v3d->lay;
if(v3d->localvd)
if (v3d->localvd)
rj->lay |= v3d->localvd->lay;
}