Skip to content

Commit

Permalink
Merge pull request #9 from LinkunGao/release/v1.2.1
Browse files Browse the repository at this point in the history
Release/v1.2.1
  • Loading branch information
LinkunGao authored Jan 29, 2023
2 parents 5502d4b + 6d2fd65 commit f9c6369
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "copper3d_plugin_nrrd",
"version": "1.2.0",
"version": "1.2.1",
"description": "a nrrd support for copper3D",
"main": "dist/bundle.esm.mjs",
"moudle": "dist/bundle.esm.mjs",
Expand Down
10 changes: 7 additions & 3 deletions src/NRRDLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,13 @@ class NRRDLoader extends Loader {
);

const axisOrder = [];
axisOrder[xIndex] = "x";
axisOrder[yIndex] = "y";
axisOrder[zIndex] = "z";
if (xIndex !== yIndex && xIndex !== zIndex && yIndex !== zIndex) {
axisOrder[xIndex] = "x";
axisOrder[yIndex] = "y";
axisOrder[zIndex] = "z";
} else {
axisOrder = ["x", "y", "z"];
}
volume.axisOrder = axisOrder;
} else {
volume.axisOrder = ["x", "y", "z"];
Expand Down

0 comments on commit f9c6369

Please sign in to comment.