mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
Return ExtrusionPath->polyline and ExtrusionLoop->polygon by reference
This commit is contained in:
@@ -39,12 +39,12 @@ _new(CLASS, polygon_sv, role, height, flow_spacing)
|
||||
Polygon*
|
||||
ExtrusionLoop::polygon(...)
|
||||
PREINIT:
|
||||
const char* CLASS = "Slic3r::Polygon";
|
||||
const char* CLASS = "Slic3r::Polygon::Ref";
|
||||
CODE:
|
||||
if (items > 1) {
|
||||
THIS->polygon.from_SV_check( ST(1) );
|
||||
}
|
||||
RETVAL = new Polygon(THIS->polygon);
|
||||
RETVAL = &(THIS->polygon);
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
|
||||
|
||||
Reference in New Issue
Block a user