Skip to content

Commit

Permalink
fix illuminate same survey designation
Browse files Browse the repository at this point in the history
when from and to station have different designation
  • Loading branch information
jedwards1211 committed Dec 17, 2017
1 parent a23e401 commit 63c8c8d
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2321,11 +2321,11 @@ private void addAffectedShot3ds(CalcStation station, Set<Shot3d> affectedShot3ds

private void addGlowForSameSurveyDesignation(CalcShot origShot, final Map<StationKey, Float> glowAtStations,
Set<Shot3d> affectedShot3ds, final Task<?> task) {
String fromSurveyDesignation = getSurveyDesignation(origShot.fromStation.name);
String fromCaveName = or(origShot.fromStation.cave, origShot.trip.cave.name, "");
CalcCave fromCave = project.caves.get(fromCaveName);
if (fromCave != null) {
for (CalcStation station : fromCave.stationsBySurveyDesignation
.get(getSurveyDesignation(origShot.fromStation.name))) {
for (CalcStation station : fromCave.stationsBySurveyDesignation.get(fromSurveyDesignation)) {
if (task.isCanceled()) {
break;
}
Expand All @@ -2334,11 +2334,11 @@ private void addGlowForSameSurveyDesignation(CalcShot origShot, final Map<Statio
}
}

String toSurveyDesignation = getSurveyDesignation(origShot.toStation.name);
String toCaveName = or(origShot.toStation.cave, origShot.trip.cave.name, "");
CalcCave toCave = project.caves.get(toCaveName);
if (toCave != null && toCave != fromCave) {
for (CalcStation station : toCave.stationsBySurveyDesignation
.get(getSurveyDesignation(origShot.toStation.name))) {
if (toCave != null && (toCave != fromCave) || !fromSurveyDesignation.equals(toSurveyDesignation)) {
for (CalcStation station : toCave.stationsBySurveyDesignation.get(toSurveyDesignation)) {
if (task.isCanceled()) {
break;
}
Expand Down

0 comments on commit 63c8c8d

Please sign in to comment.