Unverified Commit 6764514b authored by acpaquette's avatar acpaquette Committed by GitHub
Browse files

Mission Specific PCK loading Fix (#5335)

* Allow the kernel db loading to fall back on base

* Fixed small comment typo
parent c2197f77
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -740,11 +740,12 @@ namespace Isis {
    // Load the leapsecond DB
    loadKernelDbFiles(dataDir, baseDir + "/kernels/lsk", lab);
    // Load the target attitude shape DB
    FileName tasDbPath(missionDir + "/kernels/pck");
    if (tasDbPath.fileExists()) {
    // Try to get mission specific pck data, if that
    // fails, fallback to the base pck data
    try {
      loadKernelDbFiles(dataDir, missionDir + "/kernels/pck", lab);
    }
    else {
    catch (IException &e) {
      loadKernelDbFiles(dataDir, baseDir + "/kernels/pck", lab);
    }
    // Load the target position DB