mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-23 08:41:11 -06:00
Bless arrayref representation into Slic3r classes
This commit is contained in:
parent
53e4532f9c
commit
989e48ede0
5 changed files with 11 additions and 5 deletions
|
@ -46,7 +46,7 @@ polygon2perl(Polygon& poly) {
|
|||
for (unsigned int i = 0; i < num_points; i++) {
|
||||
av_store(av, i, point2perl(poly[i]));
|
||||
}
|
||||
return (SV*)newRV_noinc((SV*)av);
|
||||
return sv_bless(newRV_noinc((SV*)av), gv_stashpv("Slic3r::Polygon", GV_ADD));
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue