Skip to content

Commit

Permalink
CAPN: Ensure null is created above earliest selected layer
Browse files Browse the repository at this point in the history
  • Loading branch information
zlovatt committed Sep 5, 2023
1 parent dc8db4a commit a918cd1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Create Average Position Null.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,16 @@
}
}

layers.sort(function (layerA, layerB) {
if (layerA.index < layerB.index) {
return -1;
} else if (layerA.index > layerB.index) {
return 1;
}

return 0;
});

return layers;
}
})();

0 comments on commit a918cd1

Please sign in to comment.