From c3e5aaf39edf656f9997c94ea7a1be10daa7372d Mon Sep 17 00:00:00 2001 From: Guillaume Flandin Date: Thu, 25 Apr 2019 10:25:26 +0000 Subject: [PATCH] Bug fix: handle gifti with external files in mesh plugin. SVN r7578 --- spm_orthviews/spm_ov_mesh.m | 4 ++-- spm_orthviews/spm_ov_reorient.m | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spm_orthviews/spm_ov_mesh.m b/spm_orthviews/spm_ov_mesh.m index d5b3d527b..4f95132ee 100644 --- a/spm_orthviews/spm_ov_mesh.m +++ b/spm_orthviews/spm_ov_mesh.m @@ -9,7 +9,7 @@ % Copyright (C) 2017 Wellcome Trust Centre for Neuroimaging % Torben Lund, Guillaume Flandin & Christian Gaser -% $Id: spm_ov_mesh.m 7183 2017-10-09 15:26:47Z guillaume $ +% $Id: spm_ov_mesh.m 7578 2019-04-25 10:25:26Z guillaume $ switch lower(varargin{1}) @@ -98,7 +98,7 @@ function mesh_add(i,g) [g,sts] = spm_select([1 Inf],'mesh','Select mesh(es)...'); if ~sts, st.vols{i}.mesh.meshes = m; return; end end -g = gifti(g); +g = export(gifti(g),'patch'); for j=1:numel(g) if ~isfield(g(j),'vertices') || ~isfield(g(j),'faces') error('Selected file must contain triangular meshes.'); diff --git a/spm_orthviews/spm_ov_reorient.m b/spm_orthviews/spm_ov_reorient.m index 114c2b30b..48d6c9574 100644 --- a/spm_orthviews/spm_ov_reorient.m +++ b/spm_orthviews/spm_ov_reorient.m @@ -17,7 +17,7 @@ % Copyright (C) 2012-2019 Wellcome Trust Centre for Neuroimaging % Volkmar Glauche -% $Id: spm_ov_reorient.m 7565 2019-04-03 09:36:23Z guillaume $ +% $Id: spm_ov_reorient.m 7578 2019-04-25 10:25:26Z guillaume $ global st @@ -177,7 +177,7 @@ p = spm_fileparts(st.vols{volhandle}.fname); [P, sts] = spm_select(Inf, 'image', {'Image(s) to reorient'}, P, p); if ~sts - disp('''Set origin to corsshair'' cancelled.'); + disp('''Set origin to crosshair'' cancelled.'); return; end sv = questdlg('Save reorientation matrix for future reference?',...