コード例 #1
0
 public BlendShapeData(Version version)
 {
     Vertices    = new BlendShapeVertex[0];
     Shapes      = new BlendShape[0];
     Channels    = new BlendShapeChannel[0];
     FullWeights = ArrayExtensions.EmptyFloats;
 }
コード例 #2
0
ファイル: BlendShapeData.cs プロジェクト: zbx91/UtinyRipper
 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
ファイル: BlendShapeData.cs プロジェクト: zbx91/UtinyRipper
 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);
     }
 }