Skip to content
Snippets Groups Projects
Commit 3899c4e9 authored by Danny Hindson's avatar Danny Hindson
Browse files

Only set material's attenuation filename if not blank

parent 5ac238d0
No related branches found
No related tags found
No related merge requests found
...@@ -217,7 +217,9 @@ MaterialBuilder &MaterialBuilder::setAbsorptionXSection(double xsec) { ...@@ -217,7 +217,9 @@ MaterialBuilder &MaterialBuilder::setAbsorptionXSection(double xsec) {
*/ */
MaterialBuilder & MaterialBuilder &
MaterialBuilder::setAttenuationProfileFilename(std::string filename) { MaterialBuilder::setAttenuationProfileFilename(std::string filename) {
m_attenuationProfileFileName = filename; if (!filename.empty()) {
m_attenuationProfileFileName = filename;
}
return *this; return *this;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment