mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Object updated by scale gizmo
This commit is contained in:
parent
56ea84fef8
commit
a3949b9f01
12 changed files with 179 additions and 52 deletions
|
@ -247,6 +247,21 @@ void PerlCallback::call(const std::vector<int>& ints) const
|
|||
LEAVE;
|
||||
}
|
||||
|
||||
void PerlCallback::call(double d) const
|
||||
{
|
||||
if (!m_callback)
|
||||
return;
|
||||
dSP;
|
||||
ENTER;
|
||||
SAVETMPS;
|
||||
PUSHMARK(SP);
|
||||
XPUSHs(sv_2mortal(newSVnv(d)));
|
||||
PUTBACK;
|
||||
perl_call_sv(SvRV((SV*)m_callback), G_DISCARD);
|
||||
FREETMPS;
|
||||
LEAVE;
|
||||
}
|
||||
|
||||
void PerlCallback::call(double x, double y) const
|
||||
{
|
||||
if (!m_callback)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue