Skip to content

Commit

Permalink
Update coil_visualizer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Unichronic committed Jan 4, 2025
1 parent 0b2ef4d commit bdfcf65
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions invesalius/data/visualization/coil_visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def ShowCoil(self, state, coil_name=None):
for coil in self.coils.values():
coil["actor"].SetVisibility(state)
coil["center_actor"].SetVisibility(True) # Always show the center donut actor

# Update the button state after toggling all coils
coils_visible = [coil["actor"].GetVisibility() for coil in self.coils.values()]
if not any(coils_visible): # all coils are hidden
Expand All @@ -144,7 +144,6 @@ def ShowCoil(self, state, coil_name=None):
if not self.is_navigating:
Publisher.sendMessage("Render volume viewer")


def AddTargetCoil(self, m_target):
self.RemoveTargetCoil()

Expand Down

0 comments on commit bdfcf65

Please sign in to comment.