[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [36171] trunk/blender/source/blender/ editors/space_node/drawnode.c: float value reader in compositor backdrop ( Alt + LMB Drag) should be 4 decimals like in image editor

Daniel Salazar zanqdo at gmail.com
Thu Apr 14 22:30:55 CEST 2011


Revision: 36171
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=36171
Author:   zanqdo
Date:     2011-04-14 20:30:54 +0000 (Thu, 14 Apr 2011)
Log Message:
-----------
float value reader in compositor backdrop (Alt + LMB Drag) should be 4 decimals like in image editor

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_node/drawnode.c

Modified: trunk/blender/source/blender/editors/space_node/drawnode.c
===================================================================
--- trunk/blender/source/blender/editors/space_node/drawnode.c	2011-04-14 17:22:05 UTC (rev 36170)
+++ trunk/blender/source/blender/editors/space_node/drawnode.c	2011-04-14 20:30:54 UTC (rev 36171)
@@ -1453,19 +1453,19 @@
 		if(cp)
 			ofs+= sprintf(str+ofs, "| R: %3d G: %3d B: %3d A: %3d ", cp[0], cp[1], cp[2], cp[3]);
 		if (fp)
-			ofs+= sprintf(str+ofs, "| R: %.3f G: %.3f B: %.3f A: %.3f ", fp[0], fp[1], fp[2], fp[3]);
+			ofs+= sprintf(str+ofs, "| R: %.4f G: %.4f B: %.4f A: %.4f ", fp[0], fp[1], fp[2], fp[3]);
 	}
 	else if(channels==1) {
 		if(cp)
 			ofs+= sprintf(str+ofs, "| Val: %3d ", cp[0]);
 		if (fp)
-			ofs+= sprintf(str+ofs, "| Val: %.3f ", fp[0]);
+			ofs+= sprintf(str+ofs, "| Val: %.4f ", fp[0]);
 	}
 	else if(channels==3) {
 		if(cp)
 			ofs+= sprintf(str+ofs, "| R: %3d G: %3d B: %3d ", cp[0], cp[1], cp[2]);
 		if (fp)
-			ofs+= sprintf(str+ofs, "| R: %.3f G: %.3f B: %.3f ", fp[0], fp[1], fp[2]);
+			ofs+= sprintf(str+ofs, "| R: %.4f G: %.4f B: %.4f ", fp[0], fp[1], fp[2]);
 	}
 
 	glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA);




More information about the Bf-blender-cvs mailing list