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:
authorTon Roosendaal <ton@blender.org>2008-01-17 18:45:40 +0300
committerTon Roosendaal <ton@blender.org>2008-01-17 18:45:40 +0300
commite14ed616fb52bdc8adec8135fcc2d5d5ea7a6def (patch)
treeb70c60f4e3c15716e3b2adfdf4ea002d323ce683 /source/blender/src/buttons_shading.c
parent16a37bcd31894ce17ed7d5aba9af2ac1b4f6c653 (diff)
Tiny fix but took me hours to track down: render layer menu in Image Window
is not being reset when you render, so after render the layer you picked is still visible in Image Window.
Diffstat (limited to 'source/blender/src/buttons_shading.c')
-rw-r--r--source/blender/src/buttons_shading.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/src/buttons_shading.c b/source/blender/src/buttons_shading.c
index 4eef6b29599..2e73a6db06f 100644
--- a/source/blender/src/buttons_shading.c
+++ b/source/blender/src/buttons_shading.c
@@ -748,8 +748,7 @@ static char *layer_menu(RenderResult *rr, short *curlay)
a+= sprintf(str+a, "|%s %%x%d", rl->name, nr);
}
- if(*curlay >= nr)
- *curlay= 0;
+ /* no curlay clip here, on render (redraws) the amount of layers can be 1 fir single-layer render */
return str;
}