Commit 8d54b6b0 authored by Laurent Belcour's avatar Laurent Belcour

Small changes to make the brdf2data soft work with input files

parent 6416e545
...@@ -228,6 +228,7 @@ function* plugins_manager::get_function(const std::string& filename) ...@@ -228,6 +228,7 @@ function* plugins_manager::get_function(const std::string& filename)
while(line != "#ALTA HEADER END") while(line != "#ALTA HEADER END")
{ {
std::getline(file, line) ; std::getline(file, line) ;
std::cout << line << std::endl;
std::stringstream linestream(line) ; std::stringstream linestream(line) ;
linestream.ignore(1) ; linestream.ignore(1) ;
......
...@@ -46,7 +46,7 @@ int main(int argc, char** argv) ...@@ -46,7 +46,7 @@ int main(int argc, char** argv)
// Get the function file // Get the function file
function* f = NULL; function* f = NULL;
f = plugins_manager::get_function(args); f = plugins_manager::get_function(args["input"]);
if(f == NULL) if(f == NULL)
{ {
return 1; return 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment