Bless arrayref representation into Slic3r classes
This commit is contained in:
parent
53e4532f9c
commit
989e48ede0
5 changed files with 11 additions and 5 deletions
|
@ -30,7 +30,7 @@ ExPolygon::arrayref()
|
|||
for (unsigned int i = 0; i < num_holes; i++) {
|
||||
av_store(av, i+1, polygon2perl(THIS->holes[i]));
|
||||
}
|
||||
RETVAL = (SV*)newRV_noinc((SV*)av);
|
||||
RETVAL = sv_bless(newRV_noinc((SV*)av), gv_stashpv("Slic3r::ExPolygon", GV_ADD));
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue