Skip to content
Snippets Groups Projects
Commit 1e1f9966 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Re-fixed voxel/world coordinate synchronisation, which I broke, whilst

fixing, a couple of commits back.
parent ba861a43
No related branches found
No related tags found
No related merge requests found
......@@ -96,9 +96,6 @@ class LocationPanel(wx.Panel, props.HasProperties):
self.addListener( 'voxelLocation',
lName,
self._voxelLocationChanged)
self.addListener( 'voxelLocation',
lName,
self._updateVoxelValue)
self._selectedImageChanged()
self._worldLocationChanged()
......@@ -142,6 +139,8 @@ class LocationPanel(wx.Panel, props.HasProperties):
worldLoc = image.voxToWorld([voxLoc])[0]
worldVoxLoc = image.worldToVox([self.imageList.location.xyz])[0]
self._updateVoxelValue()
# if the current image list location is already equal to the
# new voxel location, don't change it. The voxel location,
# transformed to world coordinates, will be in the centre of
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment