@@ -130,7 +130,7 @@ private SHP1(EndianBinaryReader reader, int offset)
130130 reader . BaseStream . Seek ( offset + shp1Size , System . IO . SeekOrigin . Begin ) ;
131131 }
132132
133- private SHP1 ( Assimp . Scene scene , VertexData vertData , Dictionary < string , int > boneNames , EVP1 envelopes , DRW1 partialWeight )
133+ private SHP1 ( Assimp . Scene scene , VertexData vertData , Dictionary < string , int > boneNames , EVP1 envelopes , DRW1 partialWeight , List < Rigging . Bone > skeleton )
134134 {
135135 Shapes = new List < Shape > ( ) ;
136136 RemapTable = new List < int > ( ) ;
@@ -141,7 +141,7 @@ private SHP1(Assimp.Scene scene, VertexData vertData, Dictionary<string, int> bo
141141 meshShape . SetDescriptorAttributes ( mesh , boneNames . Count ) ;
142142
143143 if ( boneNames . Count > 1 )
144- meshShape . ProcessVerticesWithWeights ( mesh , vertData , boneNames , envelopes , partialWeight ) ;
144+ meshShape . ProcessVerticesWithWeights ( mesh , vertData , boneNames , envelopes , partialWeight , skeleton ) ;
145145 else
146146 {
147147 meshShape . ProcessVerticesWithoutWeights ( mesh , vertData ) ;
@@ -158,9 +158,9 @@ public static SHP1 Create(EndianBinaryReader reader, int offset)
158158 return new SHP1 ( reader , offset ) ;
159159 }
160160
161- public static SHP1 Create ( Scene scene , Dictionary < string , int > boneNames , VertexData vertData , EVP1 evp1 , DRW1 drw1 )
161+ public static SHP1 Create ( Scene scene , Dictionary < string , int > boneNames , VertexData vertData , EVP1 evp1 , DRW1 drw1 , JNT1 jnt1 )
162162 {
163- SHP1 shp1 = new SHP1 ( scene , vertData , boneNames , evp1 , drw1 ) ;
163+ SHP1 shp1 = new SHP1 ( scene , vertData , boneNames , evp1 , drw1 , jnt1 . FlatSkeleton ) ;
164164
165165 return shp1 ;
166166 }
0 commit comments