From 53f6d2bfe6c30303c7d85c6f992d3d2e8c55768d Mon Sep 17 00:00:00 2001 From: Sergen Eren Date: Mon, 6 Jan 2020 15:56:53 +0300 Subject: [PATCH] check environment map seperately --- source/main.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/source/main.cpp b/source/main.cpp index a94442b..69dc238 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -1306,16 +1306,17 @@ int main(const int argc, const char* argv[]) env_tex_name = ASSET_PATH; env_tex_name.append(fname); } - else if(file_extension_env == ".hdr") { - env_tex = true; - env_tex_name = ASSET_PATH; - env_tex_name.append(env_name); - } else { // No vdb or instance file is given procede with procedural volume log("No vdb file or an instance file is provided. Continuing with procedural volume", LOG); } + if (file_extension_env == ".hdr") { + env_tex = true; + env_tex_name = ASSET_PATH; + env_tex_name.append(env_name); + } + if (empty_volume) {