Skip to content

Commit

Permalink
Bug fix: handle gifti with external files in mesh plugin.
Browse files Browse the repository at this point in the history
SVN r7578
  • Loading branch information
gllmflndn committed Apr 25, 2019
1 parent 21a7bc3 commit c3e5aaf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions spm_orthviews/spm_ov_mesh.m
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down Expand Up @@ -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.');
Expand Down
4 changes: 2 additions & 2 deletions spm_orthviews/spm_ov_reorient.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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?',...
Expand Down

0 comments on commit c3e5aaf

Please sign in to comment.