mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-20 23:31:13 -06: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:
parent
7ca02bda0f
commit
b12e4689e8
2 changed files with 20 additions and 0 deletions
|
@ -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*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue