mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-10 07:15:08 -06:00
Return ExtrusionPath->polyline and ExtrusionLoop->polygon by reference
This commit is contained in:
parent
d2e4bba074
commit
dd70f6be2f
6 changed files with 26 additions and 10 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue