Fix leftover from a change in weight input format

This commit is contained in:
Mael Rouxel-Labbé 2023-02-14 11:36:09 +01:00
parent 9b7f586f26
commit b98eca293c
1 changed files with 0 additions and 6 deletions

View File

@ -771,12 +771,6 @@ std::tuple<Slope, bool, FT> preprocess_weights(WeightRange& weights)
{
for(FT& w : contour_weights)
{
if(w == 0)
{
std::cerr << "Error: null weight (null angle) is not a valid input" << std::endl;
return {Slope::UNKNOWN, false, FT(-1)};
}
// '0' means a vertical slab, aka 90° angle (see preprocess_angles())
if(w == 0)
continue;