diff options
author | Enrico Turri <enricoturri@seznam.cz> | 2018-06-18 16:07:17 +0300 |
---|---|---|
committer | Enrico Turri <enricoturri@seznam.cz> | 2018-06-18 16:07:17 +0300 |
commit | a3949b9f01f60ad3f0543de270f4dc662f6c9249 (patch) | |
tree | fe92c8697dd1fe91ade08713ebbac642eb88dc86 /xs/src/libslic3r/utils.cpp | |
parent | 56ea84fef812f0d8bcf0abc36e2d274c9b7f9e5d (diff) |
Object updated by scale gizmo
Diffstat (limited to 'xs/src/libslic3r/utils.cpp')
-rw-r--r-- | xs/src/libslic3r/utils.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/xs/src/libslic3r/utils.cpp b/xs/src/libslic3r/utils.cpp index 83c45b190..745d07fcd 100644 --- a/xs/src/libslic3r/utils.cpp +++ b/xs/src/libslic3r/utils.cpp @@ -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) |