mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-15 19:52:39 -07:00
This commit is contained in:
@@ -112,8 +112,10 @@ void
|
||||
Point::from_SV(SV* point_sv)
|
||||
{
|
||||
AV* point_av = (AV*)SvRV(point_sv);
|
||||
this->x = (long)SvIV(*av_fetch(point_av, 0, 0));
|
||||
this->y = (long)SvIV(*av_fetch(point_av, 1, 0));
|
||||
// get a double from Perl and round it, otherwise
|
||||
// it would get truncated
|
||||
this->x = lrint(SvNV(*av_fetch(point_av, 0, 0)));
|
||||
this->y = lrint(SvNV(*av_fetch(point_av, 1, 0)));
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user