Follow-up of 7d87490777 - Fix into function reloadable_volumes()

This commit is contained in:
enricoturri1966 2022-02-02 14:59:21 +01:00
parent 7d87490777
commit 81b9997009

View File

@ -3545,7 +3545,7 @@ static std::vector<std::pair<int, int>> reloadable_volumes(const Model& model, c
if (0 <= v_idx && v_idx < int(obj->volumes.size())) {
const ModelVolume* vol = obj->volumes[v_idx];
if (!vol->source.is_from_builtin_objects && !vol->source.input_file.empty() &&
vol->source.input_file != obj->input_file && !fs::path(vol->source.input_file).extension().string().empty())
!fs::path(vol->source.input_file).extension().string().empty())
ret.push_back({ o_idx, v_idx });
}
}