diff options
author | Daniel Salazar <zanqdo@gmail.com> | 2011-04-15 00:30:54 +0400 |
---|---|---|
committer | Daniel Salazar <zanqdo@gmail.com> | 2011-04-15 00:30:54 +0400 |
commit | a4cc2950005b3825f17eadef0a0aee69d2d67589 (patch) | |
tree | 982526533df0d244a8a80ebb60d04fd926ad4ca0 /source/blender | |
parent | 5e26763b40218ac8328bfd27637f1d08501a5059 (diff) |
float value reader in compositor backdrop (Alt + LMB Drag) should be 4 decimals like in image editor
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/space_node/drawnode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/space_node/drawnode.c b/source/blender/editors/space_node/drawnode.c index 78c295a56cb..ff135fbe464 100644 --- a/source/blender/editors/space_node/drawnode.c +++ b/source/blender/editors/space_node/drawnode.c @@ -1453,19 +1453,19 @@ void draw_nodespace_color_info(ARegion *ar, int channels, int x, int y, char *cp 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); |