Return ExtrusionPath->polyline and ExtrusionLoop->polygon by reference

This commit is contained in:
Alessandro Ranellucci committed 2013-08-31 00:50:03 +02:00
1 parent d2e4bba074
commit dd70f6be2f
6 files changed
+26 -10

No files matched your search

+2 -2
View File
@@ -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