mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-28 15:45:30 +00:00
Fix of changing the order of volumes of a multi-volume part:
The 3D preview scene was not updated properly.
This commit is contained in:
@@ -90,6 +90,24 @@
|
||||
void render_legacy() const;
|
||||
void finalize_geometry(bool use_VBOs);
|
||||
void release_geometry();
|
||||
|
||||
bool move_volume_up(int idx)
|
||||
%code%{
|
||||
if (idx > 0 && idx < int(THIS->volumes.size())) {
|
||||
std::swap(THIS->volumes[idx-1], THIS->volumes[idx]);
|
||||
RETVAL = true;
|
||||
} else
|
||||
RETVAL = false;
|
||||
%};
|
||||
bool move_volume_down(int idx)
|
||||
%code%{
|
||||
if (idx >= 0 && idx + 1 < int(THIS->volumes.size())) {
|
||||
std::swap(THIS->volumes[idx+1], THIS->volumes[idx]);
|
||||
RETVAL = true;
|
||||
} else
|
||||
RETVAL = false;
|
||||
%};
|
||||
|
||||
%{
|
||||
|
||||
SV*
|
||||
|
||||
Reference in New Issue
Block a user