Skip to content

Commit

Permalink
HOTFIX: Landmark viewing in 3D
Browse files Browse the repository at this point in the history
The viewing refactoring has broken landmark viewing in 3D. This is
because we did not call the PointCloud viewer before calling
the landmark viewer.
  • Loading branch information
patricksnape committed Feb 2, 2015
1 parent 934c1b4 commit b4a8489
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion menpo/shape/pointcloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,9 @@ def _view_landmarks_3d(self, figure_id=None, new_figure=False,
group=None):
try:
from menpo3d.visualize import LandmarkViewer3d
return LandmarkViewer3d(figure_id, new_figure, self,
self_renderer = self.view(figure_id=figure_id,
new_figure=new_figure)
return LandmarkViewer3d(self_renderer.figure, False, self,
self.landmarks[group]).render()
except ImportError:
from menpo.visualize import Menpo3dErrorMessage
Expand Down

0 comments on commit b4a8489

Please sign in to comment.