Skip to content

Commit

Permalink
Disable theia sensor file requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottMcMichael committed Jun 13, 2016
1 parent c675fde commit 62f2c4c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions patches/theia/0003-disable-sensor-width-file.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- theia-git/src/theia/sfm/exif_reader.cc 2016-06-13 13:05:25.692643313 -0700
+++ theia-git/src/theia/sfm_new/exif_reader.cc 2016-06-13 13:05:09.894769792 -0700
@@ -94,8 +94,9 @@

std::ifstream ifs(sensor_width_file.c_str(), std::ios::in);
if (!ifs.is_open()) {
- LOG(FATAL) << "Cannot read the sensor width file from "
- << sensor_width_file;
+ //LOG(FATAL) << "Cannot read the sensor width file from "
+ // << sensor_width_file;
+ return; // We can run fine without the sensor width file, suppress this error.
}

while (!ifs.eof()) {

0 comments on commit 62f2c4c

Please sign in to comment.