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:
@@ -41,12 +41,12 @@ _new(CLASS, polyline_sv, role, height, flow_spacing)
|
||||
Polyline*
|
||||
ExtrusionPath::polyline(...)
|
||||
PREINIT:
|
||||
const char* CLASS = "Slic3r::Polyline";
|
||||
const char* CLASS = "Slic3r::Polyline::Ref";
|
||||
CODE:
|
||||
if (items > 1) {
|
||||
THIS->polyline.from_SV_check( ST(1) );
|
||||
}
|
||||
RETVAL = new Polyline(THIS->polyline);
|
||||
RETVAL = &(THIS->polyline);
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
|
||||
|
||||
Reference in New Issue
Block a user