added finishshape before clone_shape as it could damage the previous shape

This commit is contained in:
Zeno Rogue 2022-12-07 23:58:59 +01:00
parent bf001926c2
commit 429ed81293
1 changed files with 1 additions and 0 deletions

View File

@ -596,6 +596,7 @@ void geometry_information::make_revolution_cut(hpcshape &sh, int each, ld push,
}
void geometry_information::clone_shape(hpcshape& sh, hpcshape& target) {
finishshape();
target = sh;
target.s = isize(hpc);
for(int i=sh.s; i<sh.e; i++) hpc.push_back(hpc[i]);