Skip to content

Commit

Permalink
[fix] allow _ArraySize_ to be a scalar in loadbj
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Nov 4, 2024
1 parent 40841d0 commit 7305bba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loadbj.m
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@
if (~isempty(type))
if (count >= 0)
[object, adv] = parse_block(inputstr, pos, type, count, varargin{:});
if (~isempty(dim))
if (~isempty(dim) && length(dim) > 1)
object = permute(reshape(object, fliplr(dim(:)')), length(dim):-1:1);
end
pos = pos + adv;
Expand Down

0 comments on commit 7305bba

Please sign in to comment.