- private int cubeInChannel(Cube c) {
- int i = 1;
- for (int index : activeMapping.channelList[mappingChannelIndex]) {
- if (c == model.getCubeByRawIndex(index)) {
- return i;
+ private int indexOfCubeInChannel(Cube c) {
+ if (activeChannel.mode == ChannelMapping.MODE_CUBES) {
+ int i = 1;
+ for (int index : activeChannel.objectIndices) {
+ if (c == model.getCubeByRawIndex(index)) {
+ return i;
+ }
+ ++i;