示例#1
0
 private static void SetFill(pb_UV.Fill fill, pb_Object[] sel)
 {
     pbUndo.RecordObjects(sel, "Fill UVs");
     for (int i = 0; i < sel.Length; i++)
     {
         foreach (pb_Face q in sel[i].SelectedFaces)
         {
             q.uv.fill = fill;
         }
     }
 }
示例#2
0
 private void SetFill(pb_UV.Fill fill, pb_Object[] sel)
 {
     for (int i = 0; i < sel.Length; i++)
     {
         foreach (pb_Face q in sel[i].SelectedFaces)
         {
             q.uv.fill = fill;
         }
         sel[i].RefreshUV(SelectedFacesInEditZone[i]);
     }
 }
 // The pb_SerializedMesh constructor is used to deserialize values.
 public pb_SerializableUV(SerializationInfo info, StreamingContext context)
 {
     this.useWorldSpace		= (bool)			info.GetValue("useWorldSpace", 	typeof(bool));
     this.flipU				= (bool)			info.GetValue("flipU", 			typeof(bool));
     this.flipV				= (bool)			info.GetValue("flipV", 			typeof(bool));
     this.swapUV				= (bool)			info.GetValue("swapUV", 		typeof(bool));
     this.fill				= (pb_UV.Fill)		info.GetValue("fill", 			typeof(pb_UV.Fill));
     this.scale				= (pb_Vector2) 		info.GetValue("scale", 			typeof(pb_Vector2));
     this.offset				= (pb_Vector2) 		info.GetValue("offset", 		typeof(pb_Vector2));
     this.rotation			= (float)			info.GetValue("rotation", 		typeof(float));
     this.justify			= (pb_UV.Justify)	info.GetValue("justify", 		typeof(pb_UV.Justify));
 }
 public pb_SerializableUV(pb_UV uv)
 {
     this.useWorldSpace		= uv.useWorldSpace;
     this.flipU				= uv.flipU;
     this.flipV				= uv.flipV;
     this.swapUV				= uv.swapUV;
     this.fill				= uv.fill;
     this.scale				= uv.scale;
     this.offset				= uv.offset;
     this.rotation			= uv.rotation;
     this.justify			= uv.justify;
 }