Page MenuHome

Fix T58502: scopes don't work in image editor
ClosedPublic

Authored by Jacques Lucke (JacquesLucke) on Jan 24 2019, 11:48 AM.

Details

Summary

The problem was that the scopes only update if the "Scopes" tab is active.
However, in Blender 2.8 there are no tabs in the image editor anymore.

We might want to check if the corresponding panels are open, but that feels very hacky.
A better approach could be to update the scopes directly before drawing, then it does not matter where they are drawn.

Anyway, let's fix the bug at hand first.

Diff Detail

Repository
rB Blender

Event Timeline

Brecht Van Lommel (brecht) requested changes to this revision.Jan 24 2019, 11:58 AM

Computing scopes can be very slow, doing it always when the sidebar is open too much of a performance problem.

Instead we should put scopes in their own category again.

This revision now requires changes to proceed.Jan 24 2019, 11:58 AM

Ok, so we'd have to bring back tabs in the image editor again?
Or just check if the panel and subpanels are open for now?

Bring back the tabs / category. The support is there already, it's just a matter of changing bl_category in the Python code. The different scopes panels can be split up again as well then, instead of using subpanels.

  • bring back Scopes category
  • Revert "Fix T58502: scopes don't work in image editor"
  • Move histogram update code into correct draw function
This revision is now accepted and ready to land.Thu, Jan 24, 2:35 PM
This revision was automatically updated to reflect the committed changes.