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:
Diffstat (limited to 'source/blender/editors/space_node/node_state.c')
-rw-r--r--source/blender/editors/space_node/node_state.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/space_node/node_state.c b/source/blender/editors/space_node/node_state.c
index 2ab24141c7d..5463d4a8ff0 100644
--- a/source/blender/editors/space_node/node_state.c
+++ b/source/blender/editors/space_node/node_state.c
@@ -71,9 +71,9 @@ static void snode_home(ScrArea *UNUSED(sa), ARegion *ar, SpaceNode* snode)
cur->xmax=ar->winx;
cur->ymax=ar->winy;
- if(snode->edittree) {
- for(node= snode->edittree->nodes.first; node; node= node->next) {
- if(first) {
+ if (snode->edittree) {
+ for (node= snode->edittree->nodes.first; node; node= node->next) {
+ if (first) {
first= 0;
ar->v2d.cur= node->totr;
}
@@ -88,7 +88,7 @@ static void snode_home(ScrArea *UNUSED(sa), ARegion *ar, SpaceNode* snode)
width= cur->xmax - cur->xmin;
height= cur->ymax- cur->ymin;
- if(width > height) {
+ if (width > height) {
float newheight;
newheight= oldheight * width/oldwidth;
cur->ymin = cur->ymin - newheight/4;