예제 #1
0
 public BlendShapeData(Version version)
 {
     Vertices    = new BlendShapeVertex[0];
     Shapes      = new BlendShape[0];
     Channels    = new BlendShapeChannel[0];
     FullWeights = ArrayExtensions.EmptyFloats;
 }
예제 #2
0
 public BlendShapeData(bool _)
 {
     m_vertices    = new BlendShapeVertex[0];
     m_shapes      = new BlendShape[0];
     m_channels    = new BlendShapeChannel[0];
     m_fullWeights = new float[0];
 }
예제 #3
0
 private IReadOnlyList <BlendShapeChannel> GetChannels(Version version)
 {
     if (IsReadChannels(version))
     {
         return(m_channels);
     }
     else
     {
         BlendShapeChannel[] channels = new BlendShapeChannel[m_shapes.Length];
         for (int i = 0; i < m_shapes.Length; i++)
         {
             BlendShape shape = m_shapes[i];
             channels[i] = new BlendShapeChannel(shape.Name, i, 1);
         }
         return(channels);
     }
 }