Anima2D.SpriteMeshCache.ResetVertices C# (CSharp) Method

ResetVertices() public method

public ResetVertices ( List _nodes, string undoName = "" ) : void
_nodes List
undoName string
return void
		public void ResetVertices(List<Node> _nodes, string undoName = "")
		{
			if(selectedBlendshapeFrame)
			{
				RegisterUndo(undoName);

				foreach(Node node in _nodes)
				{
					SetVertex( node, m_TexVertices[node.index] );
				}

				m_DirtyVertices = true;
				isDirty = true;
			}
		}

Usage Example

Beispiel #1
0
 void ResetVertices()
 {
     if (spriteMeshCache)
     {
         if (spriteMeshCache.selection.Count > 0)
         {
             spriteMeshCache.ResetVertices(spriteMeshCache.selectedNodes, "Reset vertices");
         }
         else
         {
             spriteMeshCache.ResetVertices(spriteMeshCache.nodes, "Reset vertices");
         }
     }
 }