image histogram/sample line couldn't show HDR colors. now allow zooming the view...
[blender.git] / source / blender / editors / interface / interface_handlers.c
index 32aef5d3939ac9f952b01b5557dcfbbe456baddd..152027603153abcd92b4182200502b2753cfe481 100644 (file)
@@ -3872,7 +3872,8 @@ static int ui_numedit_but_HISTOGRAM(uiBut *but, uiHandleButtonData *data, int mx
                const float yfac = minf(powf(hist->ymax, 2.0f), 1.0f) * 0.5f;
                hist->ymax += dy * yfac;
        
-               CLAMP(hist->ymax, 1.f, 100.f);
+               /* 0.1 allows us to see HDR colors up to 10 */
+               CLAMP(hist->ymax, 0.1f, 100.f);
        }
        
        data->draglastx = mx;