mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-17 02:42:47 -07:00
Don't return first_point() and last_point() by reference
This commit is contained in:
@@ -6,9 +6,9 @@
|
||||
namespace Slic3r {
|
||||
|
||||
Point*
|
||||
Polygon::last_point()
|
||||
Polygon::last_point() const
|
||||
{
|
||||
return &(this->points.front()); // last point == first point for polygons
|
||||
return new Point(this->points.front()); // last point == first point for polygons
|
||||
}
|
||||
|
||||
SV*
|
||||
|
||||
Reference in New Issue
Block a user