mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 07:34:03 -06:00
Replaced CONFESS with throw std::exception in libslic3r, so now
libslic3r should be compilable without Perl.
This commit is contained in:
parent
27bba45331
commit
3ddaccb641
30 changed files with 261 additions and 246 deletions
|
@ -18,7 +18,8 @@ Polyline::operator Polylines() const
|
|||
|
||||
Polyline::operator Line() const
|
||||
{
|
||||
if (this->points.size() > 2) CONFESS("Can't convert polyline with more than two points to a line");
|
||||
if (this->points.size() > 2)
|
||||
throw std::invalid_argument("Can't convert polyline with more than two points to a line");
|
||||
return Line(this->points.front(), this->points.back());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue