File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
xivModdingFramework/Models/FileTypes Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -327,12 +327,21 @@ public static async Task ExportMaterialsForModel(TTModel model, string outputFil
327
327
if ( targetRace != XivRace . All_Races )
328
328
{
329
329
var bodyRegex = new Regex ( "(b[0-9]{4})" ) ;
330
+ var faceRegex = new Regex ( "(f[0-9]{4})" ) ;
330
331
331
332
if ( bodyRegex . Match ( materialName ) . Success )
332
333
{
333
334
var currentRace = model . Source . Substring ( model . Source . LastIndexOf ( 'c' ) + 1 , 4 ) ;
334
335
mdlPath = model . Source . Replace ( currentRace , targetRace . GetRaceCode ( ) ) ;
335
336
}
337
+
338
+ var faceMatch = faceRegex . Match ( materialName ) ;
339
+ if ( faceMatch . Success )
340
+ {
341
+ var mdlFace = faceRegex . Match ( model . Source ) . Value ;
342
+
343
+ mdlPath = model . Source . Replace ( mdlFace , faceMatch . Value ) ;
344
+ }
336
345
}
337
346
338
347
// This messy sequence is ultimately to get access to _modelMaps.GetModelMaps().
You can’t perform that action at this time.
0 commit comments