Merged in enriquefernandezperdomo/gtsam/fix_load2D_modelInFile (pull request #179)
Fix use model in file, in load2Drelease/4.3a0
						commit
						2146eb1b45
					
				|  | @ -247,6 +247,7 @@ GraphAndValues load2D(const string& filename, SharedNoiseModel model, Key maxID, | ||||||
|   // Parse the pose constraints
 |   // Parse the pose constraints
 | ||||||
|   Key id1, id2; |   Key id1, id2; | ||||||
|   bool haveLandmark = false; |   bool haveLandmark = false; | ||||||
|  |   const bool useModelInFile = !model; | ||||||
|   while (!is.eof()) { |   while (!is.eof()) { | ||||||
|     if (!(is >> tag)) |     if (!(is >> tag)) | ||||||
|       break; |       break; | ||||||
|  | @ -267,7 +268,7 @@ GraphAndValues load2D(const string& filename, SharedNoiseModel model, Key maxID, | ||||||
|       if (maxID && (id1 >= maxID || id2 >= maxID)) |       if (maxID && (id1 >= maxID || id2 >= maxID)) | ||||||
|         continue; |         continue; | ||||||
| 
 | 
 | ||||||
|       if (!model) |       if (useModelInFile) | ||||||
|         model = modelInFile; |         model = modelInFile; | ||||||
| 
 | 
 | ||||||
|       if (addNoise) |       if (addNoise) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue