-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vectorscope: fix visibility of primary sample #9906
vectorscope: fix visibility of primary sample #9906
Conversation
da73f32
to
54ee79e
Compare
On my side I thought it was a feature. Indeed the samples are the ones that have been explicitly added. Having the current color picker point being displayed seemed ok to me. No ? |
Well, that was not the intention of the original designer. In #9835, @dtorop set the primary sample visualized in vectorscope only when "restrict scope to selection" is enabled. |
@Mark-64 : Fine by me but now even with the option selected to display the area on the scope there is nothing displayed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something broken the other way around now.
Strange, it works perfectly for me in both Windows and Ubuntu. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, quite non-intuitive indeed ! Let's go with that now, but we will probably want to rework this part!
Ok, thanks. |
With merge of #9866, in one of the last commits (fb08c34) I realized I broke the connection between the gui "restrict scope to selection" and the visualization of the primary sample dot in the vectorscope.
The result is that the primary sample is always visualized.
This is because
d->vectorscope_pt[0]
was used not only to store the x coordinate of the primary sample, but also to trigger the visualization on/off.When I changed the calculation of primary sample coordinates, starting from the color conversion, this mechanism was overriden.
With this PR I replace the old mechanism with usage of
darktable.lib->proxy.colorpicker.restrict_histogram
anddarktable.lib->proxy.colorpicker.primary_sample->size
for triggering the visualization, which is more clear.