AlwarrenSidh / ArmAToolbox

Arma Toolbox for Blender
GNU General Public License v3.0
84 stars 35 forks source link

Mesh Normals can't be Calculated #57

Open SigmaEOD opened 2 months ago

SigmaEOD commented 2 months ago

Having an issue while exporting my model to P3D

I've installed the latest 4.1 version of blender and the latest release of A3 Blender Tools

Here is my error log:

`Python: Traceback (most recent call last): File "C:\Users\alexa\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\ArmaToolbox..\ArmaToolbox\MDLexporter.py", line 944, in execute

try:

File "C:\Users\alexa\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\ArmaToolbox..\ArmaToolbox\MDLexporter.py", line 713, in exportMDL if len(objects) == 0: File "C:\Users\alexa\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\ArmaToolbox..\ArmaToolbox\MDLexporter.py", line 811, in exportObjectListAsMDL newTmpObj.select_set(True) File "C:\Users\alexa\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\ArmaToolbox..\ArmaToolbox\MDLexporter.py", line 677, in exportLodLevelWithModifiers possiblyRenumberComponents(tmpObj) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\alexa\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\ArmaToolbox..\ArmaToolbox\MDLexporter.py", line 499, in export_lod

normalOffsetInFile = filePtr.tell();

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\Users\alexa\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\ArmaToolbox..\ArmaToolbox\MDLexporter.py", line 153, in writeNormals if (4,1,0) > bpy.app.version: ^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Mesh' object has no attribute 'calc_normals_split' `

AlwarrenSidh commented 2 months ago

Try to delete the addon and re-install it. The later toolbox does not call calc_normal_split anymore if the version is greater than 4.0.