diff --git a/source/filters/filter-displacement.cpp b/source/filters/filter-displacement.cpp index 04a353c6..79e39999 100644 --- a/source/filters/filter-displacement.cpp +++ b/source/filters/filter-displacement.cpp @@ -160,6 +160,11 @@ void filter::displacement::displacement_instance::validate_file_texture(std::str { bool do_update = false; + // Don't allow empty file names. + if (file.length() == 0) { + return; + } + // File name different if (file != m_file_name) { do_update = true;