Skip to content

Resolve "fix(viz): TransferfunctionWidget does not refresh when the image is updated and not fully re-created"

Description

This fixes the transfer function widget when the image is updated. This happens for instance when the input image of the configuration is not deferred.

Closes #1067 (closed)

How to test it?

To reproduce the problem:

  • Checkout the branch test-mr-1067
  • Build SightViewer
  • Run SightViewer
  • Load an image
  • Observe the TF editor is broken

To verify the fix:

  • Checkout this mr branch
  • Cherry-pick the single commit from branch test-mr-1067
  • Build SightViewer
  • Run SightViewer
  • Load an image
  • Observe the TF editor is correct

You can also load an image with the normal build of sight.

Edited by Flavien BRIDAULT

Merge request reports