@@ -150,6 +150,8 @@ static partial class Program
150
150
// [Done, Experimental] Multi-UV Exporting
151
151
// [Done, Experimental] Multi-UV Importing
152
152
// When showing up, make sure no window overlap
153
+ // Fix no-texture flver cannot be loaded issue
154
+ // VBS Editing
153
155
154
156
//X2.6 TODO List:
155
157
// Strange Mesh Error problem
@@ -162,7 +164,6 @@ static partial class Program
162
164
// Pipeline check: whole new animation pipeline walktrough (flver skeleton + further custom animation)
163
165
// exporting dummypolys
164
166
// exporting with axis convertsion
165
- // Exporting Multi-UVs
166
167
// 3dsmax support
167
168
// o assign the mesh to use “base buffer layout” and “cloth buffer layouts”
168
169
// sorta like two templates to use one for every other mesh (buffer 0) or cloth mesh (3, 8, 5)
@@ -652,7 +653,11 @@ void DrawRing(Vector3D[] vectors, Microsoft.Xna.Framework.Color c)
652
653
}
653
654
654
655
MeshInfos mi = new MeshInfos ( ) ;
655
- var tName = targetFlver . Materials [ targetFlver . Meshes [ i ] . MaterialIndex ] . Textures [ 0 ] . Path ;
656
+ var tName = "ERROR(No texture channel found in material!)" ;
657
+ // Fix no-texture flver cannot be loaded issue
658
+ if ( targetFlver . Materials [ targetFlver . Meshes [ i ] . MaterialIndex ] . Textures . Count > 0 ) {
659
+ tName = targetFlver . Materials [ targetFlver . Meshes [ i ] . MaterialIndex ] . Textures [ 0 ] . Path ;
660
+ }
656
661
tName = FindFileName ( tName ) ;
657
662
mi . textureName = tName ;
658
663
//MessageBox.Show("Found texture name:" + mi.textureName);
0 commit comments