johnzero7 / XNALaraMesh

Blender addon Import/Export XPS Models, Poses
525 stars 94 forks source link

IndexError: bpy_prop_collection[index]: index 154 out of range, size 154 #99

Open EAZENLEE opened 1 year ago

EAZENLEE commented 1 year ago

QQ截图20221123182350 The unselected part is a normal model. Since I created the selected part myself, such errors have occurred in exporting the model. When I delete the selected part and export it again, it can be exported normally, so I think there is a problem with this part of the model I built myself, but I don't know what the problem is.

File "C:\Users\Administrator\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\XNALaraMesh\export_xnalara_model.py", line 68, in getOutputFilename xpsExport() File "C:\Users\Administrator\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\XNALaraMesh\timing.py", line 31, in wrap ret = f(*args) File "C:\Users\Administrator\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\XNALaraMesh\export_xnalara_model.py", line 114, in xpsExport xpsMeshes = exportMeshes(selectedArmature, selectedMeshes) File "C:\Users\Administrator\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\XNALaraMesh\export_xnalara_model.py", line 178, in exportMeshes meshVerts, meshFaces = getXpsVertices(selectedArmature, mesh) File "C:\Users\Administrator\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\XNALaraMesh\export_xnalara_model.py", line 425, in getXpsVertices boneId, boneWeight = getBoneWeights(mesh, vertex, armature) File "C:\Users\Administrator\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\XNALaraMesh\export_xnalara_model.py", line 471, in getBoneWeights boneName = mesh.vertex_groups[groupIdx].name IndexError: bpy_prop_collection[index]: index 154 out of range, size 154

EAZENLEE commented 1 year ago

@johnzero7