[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [50424] branches/soc-2011-tomato/source/ blender/editors/space_image/image_buttons.c: Color Management: don' t show input color space for byte images

Sergey Sharybin sergey.vfx at gmail.com
Wed Sep 5 16:29:15 CEST 2012


Revision: 50424
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=50424
Author:   nazgul
Date:     2012-09-05 14:29:15 +0000 (Wed, 05 Sep 2012)
Log Message:
-----------
Color Management: don't show input color space for byte images

Modified Paths:
--------------
    branches/soc-2011-tomato/source/blender/editors/space_image/image_buttons.c

Modified: branches/soc-2011-tomato/source/blender/editors/space_image/image_buttons.c
===================================================================
--- branches/soc-2011-tomato/source/blender/editors/space_image/image_buttons.c	2012-09-05 14:19:40 UTC (rev 50423)
+++ branches/soc-2011-tomato/source/blender/editors/space_image/image_buttons.c	2012-09-05 14:29:15 UTC (rev 50424)
@@ -731,8 +731,11 @@
 			}
 
 			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);




More information about the Bf-blender-cvs mailing list