mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-07-10 03:24:45 +03:00
Bless arrayref representation into Slic3r classes
This commit is contained in:
@@ -21,7 +21,7 @@ point2perl(Point& point) {
|
||||
AV* av = newAV();
|
||||
av_fill(av, 1);
|
||||
av_store_point_xy(av, point.x, point.y);
|
||||
return (SV*)newRV_noinc((SV*)av);
|
||||
return sv_bless(newRV_noinc((SV*)av), gv_stashpv("Slic3r::Point", GV_ADD));
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user