Skip to content
Browse files

Wz4Mesh: Implement DeleteSelectedHandles for Deform

  • Loading branch information...
1 parent ffe1714 commit c9c2e62feb4d1c265b487d2dc2a4daed733daf2b @rygorous rygorous committed May 27, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 altona_wz4/wz4/wz4frlib/wz4_mesh_ops.ops
View
8 altona_wz4/wz4/wz4frlib/wz4_mesh_ops.ops
@@ -1884,6 +1884,14 @@ operator Wz4Mesh Deform(Wz4Mesh)
}
else
{
+ if(pi.DeleteSelectedHandles)
+ {
+ // have to delete in reverse to not corrupt indices
+ for (sInt i=op->ArrayData.GetCount()-1;i>=0;i--)
+ if(pi.IsSelected(op,i+n))
+ op->RemArray(i);
+ Doc->Change(op);
+ }
sFORALL(op->ArrayData,ap)
{
key = (sVector31 *)ap;

0 comments on commit c9c2e62

Please sign in to comment.
Something went wrong with that request. Please try again.