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:
authorDalai Felinto <dfelinto@gmail.com>2015-04-27 18:09:04 +0300
committerDalai Felinto <dfelinto@gmail.com>2015-04-27 18:10:35 +0300
commit4a80c4faded742aeebc2852f23e210163a5759dc (patch)
tree713447b5839c973e307e0dbdd3350c3cce9f341f
parentf809eef968c997dc00ffccd10bb0b1221d66d05a (diff)
Multi-View: Code cleanup
I finally put the time into understanding what was going on here. Basically RE_AcquireResultImage() produces RenderResults without RenderViews. That will be fine for now since I'm planning to refactor RenderResult soon.
-rw-r--r--source/blender/blenkernel/intern/image.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/source/blender/blenkernel/intern/image.c b/source/blender/blenkernel/intern/image.c
index d76537ab696..162f45379d8 100644
--- a/source/blender/blenkernel/intern/image.c
+++ b/source/blender/blenkernel/intern/image.c
@@ -3569,26 +3569,26 @@ static ImBuf *image_get_render_result(Image *ima, ImageUser *iuser, void **lock_
if (from_render) {
BLI_lock_thread(LOCK_VIEWER);
*lock_r = re;
+ rv = NULL;
+ }
+ else {
+ rv = BLI_findlink(&rres.views, actview);
+ if (rv == NULL)
+ rv = rres.views.first;
}
- rv = BLI_findlink(&rres.views, actview);
- if (rv == NULL)
- rv = rres.views.first;
-
- if (rv != NULL) {
- /* this gives active layer, composite or sequence result */
+ /* this gives active layer, composite or sequence result */
+ if (rv == NULL) {
+ rect = (unsigned int *)rres.rect32;
+ rectf = rres.rectf;
+ rectz = rres.rectz;
+ }
+ else {
rect = (unsigned int *)rv->rect32;
rectf = rv->rectf;
rectz = rv->rectz;
}
- else {
- /* XXX This should never happen, yet it does - T44498, T44514
- * I'm waiting to investigate more, but meanwhile this fix
- * the immediate issue */
- rect = NULL;
- rectf = NULL;
- rectz = NULL;
- }
+
dither = iuser->scene->r.dither_intensity;
/* combined layer gets added as first layer */