mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-28 07:35:20 +00:00
New perl callback to force reloading of 3d scene after Purging volumes are changed
After the changes in previous commit, the 3D scene must be reloaded after the wipe tower is invalidated. This can mostly be done on the C++ side, but reloading after Purging volumes are changed required this C++ -> Perl call
This commit is contained in:
@@ -104,3 +104,12 @@ void fix_model_by_win10_sdk_gui(ModelObject *model_object_src, Print *print, Mod
|
||||
|
||||
void set_3DScene(SV *scene)
|
||||
%code%{ Slic3r::GUI::set_3DScene((_3DScene *)wxPli_sv_2_object(aTHX_ scene, "Slic3r::Model::3DScene") ); %};
|
||||
|
||||
%package{Slic3r::_GUI};
|
||||
%{
|
||||
void
|
||||
register_on_request_update_callback(callback)
|
||||
SV *callback;
|
||||
CODE:
|
||||
Slic3r::GUI::register_on_request_update_callback((void*)callback);
|
||||
%}
|
||||
|
||||
Reference in New Issue
Block a user