You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 19, 2020. It is now read-only.
`Traceback (most recent call last):
File "Blend2Halo2-Modified.py", line 534, in execute
return write_asset(context, self.filepath, triangulate_faces=self.triangulate_faces, split_flat=self.split_flat)
File "Blend2Halo2-Modified.py", line 322, in write_asset
file.write('\n{0}'.format(materials_list.index(mesh.materials[poly.material_index].name)))
AttributeError: 'NoneType' object has no attribute 'name'
location: :-1`
The text was updated successfully, but these errors were encountered:
Ye, I see it. I'll need to update the script to work more like the JMS script to prevent this error.
This will take a while. Until then just set the material to be linked to the mesh.
Work around for this for anybody else having issues. There is an addon included with Blender called material utilities. Install that, hit shift+Q and change the links to data. It's not great, as it doesn't unlink the material from the object, so you end up with double linked material unless you manually unlink it from the parent, but it does at least make the ass exporter work as expected.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
`Traceback (most recent call last):
File "Blend2Halo2-Modified.py", line 534, in execute
return write_asset(context, self.filepath, triangulate_faces=self.triangulate_faces, split_flat=self.split_flat)
File "Blend2Halo2-Modified.py", line 322, in write_asset
file.write('\n{0}'.format(materials_list.index(mesh.materials[poly.material_index].name)))
AttributeError: 'NoneType' object has no attribute 'name'
location: :-1`
The text was updated successfully, but these errors were encountered: