mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-17 21:12:53 -07:00
Don't return first_point() and last_point() by reference
This commit is contained in:
@@ -3,15 +3,9 @@
|
||||
namespace Slic3r {
|
||||
|
||||
Point*
|
||||
Polyline::last_point()
|
||||
{
|
||||
return &(this->points.back());
|
||||
}
|
||||
|
||||
const Point*
|
||||
Polyline::last_point() const
|
||||
{
|
||||
return &(this->points.back());
|
||||
return new Point(this->points.back());
|
||||
}
|
||||
|
||||
Lines
|
||||
|
||||
Reference in New Issue
Block a user