Page MenuHome

Gradient background in hsv curve widget doesn't zoom properly + patch to fix
Closed, ResolvedPublic

Description

Blender Version
Broken: all versions up to current trunk

Short description of error
Hsv color adjust curve widget (in "hue correct" node and the corresponding VSE strip modifier) has a hue color gradient background. When using the zoom buttons on the widget, the background gradient does not scale according to the zoom, rather it stays at fixed size, and fills the whole widged area only if it is viewed at lower left corner, otherwise the ending point of the gradient is visible and the gradient doesn't match the curve points.

Exact steps for others to reproduce the error
Open blender, switch to compositor and enable nodes. Add a hue correct node, zoom in and move the curve widged navigation around. Notice obvious mismatch between the gradient's location and zoom level, and that of the curve points, and how they don't match.

Apply attached patch and test again to see the problem fixed.

Details

Type
Bug

Event Timeline

Henrik Aarnio (hjaarnio) raised the priority of this task from to Needs Triage by Developer.
Henrik Aarnio (hjaarnio) updated the task description. (Show Details)
Henrik Aarnio (hjaarnio) set Type to Bug.

Should note that unnecessary calculation of the y-zoom of the gradient was removed, since the area should just be filled from bottom to top in the y direction, regardless of zoom level.

Henrik Aarnio (hjaarnio) renamed this task from Gradient background in hsv curve widget doesn't zoom properly to Gradient background in hsv curve widget doesn't zoom properly + patch to fix.May 13 2014, 11:35 PM

A blendfile demonstrating the error (maybe some screenshots too) could have been great. Can confirm the issue, but cannot test your patch (I'm not at home...).

Here's a blendfile setup for the compositor:

(I've hit the zoom button a couple of time)

(Do not care about the weird drawing...)