Hello. I have two related problems with Unwrap moveselected functions. Actually I need rotate and scale as well, but to simplify my question I will talk only about move.
There are two move functions in Unwrap: moveSelected and moveSelectedVertices.
Problem with moveSelected.
It eats a RAM on big meshes, maybe because of Undo stack, but it does that even with Undo off. And if undo is on, then it creates only 1 record.
fn moveVerts = with undo "Move verts" off (
unw = modPanel.getCurrentObject()
for i=1 to 100 do (
unw.selectVertices #{i}
unw.moveSelected [0.1,0.1,0]
)
)
moveVerts()
Each iteration of this function will eat ~150MB of RAM and it doesn't even create Undo record. gc() doesn't help. That's why I ended up with next function.
_________________________________________
Problem with moveSelectedVertices.
I can't enable undo record. I tried theHold also.
fn moveVerts = with undo "Move verts" on (
unw = modPanel.getCurrentObject()
for i=1 to 100 do (
unw.selectVertices #{i}
unw.moveSelectedVertices [0.1,0.1,0]
)
)
moveVerts()
So this function won't eat memory at all. But it doesn't create undo record.
_________________________________________
And I need function that creates 1 undo record and doesn't eat much ram :)
P.S. Is it a bug with memory leak in moveSelected?
By NiK684 · 2017-10-14