Hopefully finally fixed reordering of the multi-material parts.
This commit is contained in:
parent
8160db23cc
commit
ab21a253e0
@ -95,6 +95,9 @@
|
|||||||
%code%{
|
%code%{
|
||||||
if (idx > 0 && idx < int(THIS->volumes.size())) {
|
if (idx > 0 && idx < int(THIS->volumes.size())) {
|
||||||
std::swap(THIS->volumes[idx-1], THIS->volumes[idx]);
|
std::swap(THIS->volumes[idx-1], THIS->volumes[idx]);
|
||||||
|
std::swap(THIS->volumes[idx-1]->composite_id, THIS->volumes[idx]->composite_id);
|
||||||
|
std::swap(THIS->volumes[idx-1]->select_group_id, THIS->volumes[idx]->select_group_id);
|
||||||
|
std::swap(THIS->volumes[idx-1]->drag_group_id, THIS->volumes[idx]->drag_group_id);
|
||||||
RETVAL = true;
|
RETVAL = true;
|
||||||
} else
|
} else
|
||||||
RETVAL = false;
|
RETVAL = false;
|
||||||
@ -103,6 +106,9 @@
|
|||||||
%code%{
|
%code%{
|
||||||
if (idx >= 0 && idx + 1 < int(THIS->volumes.size())) {
|
if (idx >= 0 && idx + 1 < int(THIS->volumes.size())) {
|
||||||
std::swap(THIS->volumes[idx+1], THIS->volumes[idx]);
|
std::swap(THIS->volumes[idx+1], THIS->volumes[idx]);
|
||||||
|
std::swap(THIS->volumes[idx+1]->composite_id, THIS->volumes[idx]->composite_id);
|
||||||
|
std::swap(THIS->volumes[idx+1]->select_group_id, THIS->volumes[idx]->select_group_id);
|
||||||
|
std::swap(THIS->volumes[idx+1]->drag_group_id, THIS->volumes[idx]->drag_group_id);
|
||||||
RETVAL = true;
|
RETVAL = true;
|
||||||
} else
|
} else
|
||||||
RETVAL = false;
|
RETVAL = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user