Skip to content

Commit 7488815

Browse files
committed
Fix bug in constructing path to mesh files
1 parent c936ac6 commit 7488815

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

@SerialLink/plot3d.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ function plot3d(robot, q, varargin)
124124
pth = fileparts(pth);
125125
% peel off the last folder
126126
s = regexp(pth, filesep, 'split');
127-
pth = join(s(1:6), filesep);
127+
pth = join(s(1:end-1), filesep);
128128

129129
% find the path to this specific model
130130
pth = fullfile(pth{1}, 'data/meshes', robot.model3d);
@@ -142,6 +142,7 @@ function plot3d(robot, q, varargin)
142142
robot.points{i} = P;
143143
robot.faces{i} = F;
144144
fprintf('.');
145+
145146
end
146147
fprintf('\n');
147148
end

0 commit comments

Comments
 (0)