Skip to content

Commit

Permalink
fix(invert): Call setInvertColor after setTransferFunction in StackVi…
Browse files Browse the repository at this point in the history
…ewport._resetProperties.
  • Loading branch information
jbocce committed Oct 30, 2023
1 parent 792fe76 commit 18a382d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/RenderingEngine/StackViewport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -829,13 +829,14 @@ class StackViewport extends Viewport implements IStackViewport {
this.setRotation(0);
}
this.setInterpolationType(InterpolationType.LINEAR);
this.setInvertColor(this.initialInvert);

const transferFunction = this.getTransferFunction();
setTransferFunctionNodes(
transferFunction,
this.initialTransferFunctionNodes
);

this.setInvertColor(this.initialInvert);
}

public resetToDefaultProperties(): void {
Expand Down

0 comments on commit 18a382d

Please sign in to comment.