Skip to content

Commit 8e01ec8

Browse files
authored
Fix reading of data folders from env (#171)
* Fix reading of data folders from env Signed-off-by: Aleksandr Motsjonov <[email protected]>
1 parent bf62815 commit 8e01ec8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/rawtoaces_util/acesrender.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,11 @@ std::vector<std::string> database_paths()
231231
}
232232
}
233233

234-
if ( path.empty() )
234+
if ( env )
235+
{
236+
path = env;
237+
}
238+
else
235239
{
236240
path = default_path;
237241
}
@@ -305,6 +309,7 @@ bool configure_solver(
305309
{
306310
bool success = true;
307311

312+
308313
auto camera_files = collect_data_files( directories, "camera" );
309314
for ( auto &camera_file: camera_files )
310315
{

0 commit comments

Comments
 (0)