Color Management: don't show input color space for byte images

This commit is contained in:
Sergey Sharybin
2012-09-05 14:29:15 +00:00
parent 16a126622e
commit 7d980ca969

View File

@@ -731,8 +731,11 @@ void uiTemplateImage(uiLayout *layout, bContext *C, PointerRNA *ptr, const char
}
if (ima->source != IMA_SRC_GENERATED) {
col = uiLayoutColumn(layout, FALSE);
uiTemplateColorspaceSettings(col, &imaptr, "colorspace_settings");
/* OCIO_TODO: color space transformation for byte images is not implemented yet */
if (ibuf && ibuf->rect_float) {
col = uiLayoutColumn(layout, FALSE);
uiTemplateColorspaceSettings(col, &imaptr, "colorspace_settings");
}
if (compact == 0) { /* background image view doesnt need these */
uiItemS(layout);