forked from bartvdbraak/blender
Fix integer division error with image scopes
This commit is contained in:
parent
3f7ea7489e
commit
b633c2857f
@ -1087,6 +1087,7 @@ void scopes_update(Scopes *scopes, ImBuf *ibuf, const ColorManagedViewSettings *
|
||||
|
||||
/* convert to number of lines with logarithmic scale */
|
||||
scopes->sample_lines = (scopes->accuracy * 0.01f) * (scopes->accuracy * 0.01f) * ibuf->y;
|
||||
CLAMP_MIN(scopes->sample_lines, 1);
|
||||
|
||||
if (scopes->sample_full)
|
||||
scopes->sample_lines = ibuf->y;
|
||||
|
Loading…
Reference in New Issue
Block a user