Commit 0f1335101b45d8cb2f377a90fff6d114df335dbe

Authored by sotodela
1 parent dfd7fc1e
Exists in master

MOD: modify position array to have None for orientation instead of zeros

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
invesalius/data/styles.py
... ... @@ -486,7 +486,7 @@ class CrossInteractorStyle(DefaultInteractorStyle):
486 486 x, y, z = self.viewer.get_coordinate_cursor(mouse_x, mouse_y, self.picker)
487 487 self.viewer.UpdateSlicesPosition([x, y, z])
488 488 # This "Set cross" message is needed to update the cross in the other slices
489   - Publisher.sendMessage('Set cross focal point', position=[x, y, z, 0., 0., 0.])
  489 + Publisher.sendMessage('Set cross focal point', position=[x, y, z, None, None, None])
490 490 Publisher.sendMessage('Update slice viewer')
491 491  
492 492 def OnScrollBar(self, *args, **kwargs):
... ... @@ -494,7 +494,7 @@ class CrossInteractorStyle(DefaultInteractorStyle):
494 494 # the actual orientation.
495 495 x, y, z = self.viewer.cross.GetFocalPoint()
496 496 self.viewer.UpdateSlicesPosition([x, y, z])
497   - Publisher.sendMessage('Set cross focal point', position=[x, y, z, 0., 0., 0.])
  497 + Publisher.sendMessage('Set cross focal point', position=[x, y, z, None, None, None])
498 498 Publisher.sendMessage('Update slice viewer')
499 499  
500 500  
... ...