Skip to content

Commit

Permalink
fix(BaseVolumeViewport): when the volume actors are explicitly set, r…
Browse files Browse the repository at this point in the history
…eset the inverted flag too (#756)

the inverted flag too
  • Loading branch information
jbocce authored Aug 29, 2023
1 parent c0a3b21 commit 2258093
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/src/RenderingEngine/BaseVolumeViewport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -849,6 +849,8 @@ abstract class BaseVolumeViewport extends Viewport implements IVolumeViewport {
*
*/
private _setVolumeActors(volumeActorEntries: Array<ActorEntry>): void {
// New volume actors implies resetting the inverted flag (i.e. like starting from scratch).
this.inverted = false;
this.setActors(volumeActorEntries);
}

Expand Down

0 comments on commit 2258093

Please sign in to comment.