Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mesh Normals can't be Calculated #57

Open
SigmaEOD opened this issue Apr 22, 2024 · 1 comment
Open

Mesh Normals can't be Calculated #57

SigmaEOD opened this issue Apr 22, 2024 · 1 comment

Comments

@SigmaEOD
Copy link

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants