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:
authorJeroen Bakker <j.bakker@atmind.nl>2019-05-31 16:02:38 +0300
committerJeroen Bakker <j.bakker@atmind.nl>2019-06-04 16:14:15 +0300
commit19691e3ae2ec97ede5d2973e1e055b027474bbdb (patch)
treee39efc206cde3b14fdf235de90b83f6326a72ac0 /source/blender/editors/space_image/image_buttons.c
parent7484ed9bdcba1460b0fa1785dd207a5a0e872cae (diff)
Image Info
The image information for multilayer openexr files are only shown on the first draw. In the second draw the render result property is filled of the image, making blender think the image is a render result and it want to display information about the renderpasses. Which are not present. It could be that in the first draw the image data is not requested as the buttons are drawn, before the main area This change will display both information. We should investigate how to actually detect if this is a render result or not as similar code is present in the `node_shader_buts_tex_environment_ex`. Reviewed By: brecht Maniphest Tasks: T65345 Differential Revision: https://developer.blender.org/D4987
Diffstat (limited to 'source/blender/editors/space_image/image_buttons.c')
-rw-r--r--source/blender/editors/space_image/image_buttons.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/editors/space_image/image_buttons.c b/source/blender/editors/space_image/image_buttons.c
index 26512cb232d..17710734c80 100644
--- a/source/blender/editors/space_image/image_buttons.c
+++ b/source/blender/editors/space_image/image_buttons.c
@@ -894,13 +894,7 @@ void uiTemplateImage(uiLayout *layout,
}
/* Image layers and Info */
- if (ima->type == IMA_TYPE_MULTILAYER && ima->rr) {
- uiItemS(layout);
-
- const float dpi_fac = UI_DPI_FAC;
- uiblock_layer_pass_buttons(layout, ima, ima->rr, iuser, 230 * dpi_fac, NULL);
- }
- else if (ima->source == IMA_SRC_GENERATED) {
+ if (ima->source == IMA_SRC_GENERATED) {
uiItemS(layout);
/* Generated */
@@ -923,6 +917,12 @@ void uiTemplateImage(uiLayout *layout,
else if (compact == 0) {
uiTemplateImageInfo(layout, C, ima, iuser);
}
+ if (ima->type == IMA_TYPE_MULTILAYER && ima->rr) {
+ uiItemS(layout);
+
+ const float dpi_fac = UI_DPI_FAC;
+ uiblock_layer_pass_buttons(layout, ima, ima->rr, iuser, 230 * dpi_fac, NULL);
+ }
if (BKE_image_is_animated(ima)) {
/* Animation */