style cleanup
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user