Blender Git Loki

Git Commits -> Revision 31433a3

Revision 31433a3 by Lukas Toenne (master)
October 7, 2013, 09:25 (GMT)
Fix #36981, Removing Sample line fails during render.
The SAMPLELINE flag in histogram was set during the BKE_histogram_update_sample_line function. That function in turn is called during every scope update in area draw function, meaning that during render
it constantly gets set. OTOH the operator tries to disable the flag on invoke, which "cancels" the sample line by default. So during render the operator un-setting of the flag has no effect, because the
render job immediatly triggers a redraw, which updates scopes and sets it again.

Moved the flag out of the actual sample line update function into the operator execute. Now only the operator enables/disables overall sample line drawing, while the rest of the update works as before.

Commit Details:

Full Hash: 31433a380982cfa15adb04b5483981f00a1c6b22
SVN Revision: 60584
Parent Commit: 51a7089
Lines Changed: +3, -3

2 Modified Paths:

/source/blender/blenkernel/intern/colortools.c (+0, -3) (Diff)
/source/blender/editors/space_image/image_ops.c (+3, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021