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

AttributeError: 'Mesh' object has no attribute 'show_double_sided' #8

Open
1sa1as opened this issue Jul 24, 2020 · 4 comments
Open

Comments

@1sa1as
Copy link

1sa1as commented Jul 24, 2020

Hi!
I'm trying to import a IQM model using iqm_import.py, but I'm getting an error saying:

AttributeError: 'Mesh' object has no attribute 'show_double_sided'

So, it imports the armature but not the mesh!
I'm using Blender 2.83

error

Here is the full Blender Info Log:


bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
Deleted 3 object(s)
bpy.context.space_data.recent_folders_active = 0
bpy.ops.object.add(type='ARMATURE', enter_editmode=True, align='WORLD', location=(0, 0, 0))
bpy.ops.object.editmode_toggle()
Traceback (most recent call last):
File "C:\Users\isaia\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\iqe_import.py", line 945, in execute
import_iqm(self.properties.filepath, self.bone_axis)
File "C:\Users\isaia\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\iqe_import.py", line 920, in import_iqm
make_model(iqmodel, bone_axis, dir)
File "C:\Users\isaia\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\iqe_import.py", line 904, in make_model
meshobj = make_mesh_data(iqmodel, name, meshes[name], amtobj, dir)
File "C:\Users\isaia\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\iqe_import.py", line 655, in make_mesh_data
mesh.show_double_sided = False
AttributeError: 'Mesh' object has no attribute 'show_double_sided'

location: unknown location:-1


Thank you in advance!

@ccxvii
Copy link
Owner

ccxvii commented Jul 31, 2020

I'm not surprised the importer has finally broken! It's been a couple of years since it was written, and I have not kept up with the new Blender changes....

@1sa1as
Copy link
Author

1sa1as commented Jul 31, 2020

I'm not surprised the importer has finally broken! It's been a couple of years since it was written, and I have not kept up with the new Blender changes....

I understand that new versions can broke the plugins, but I tried with previous versions and I got the same error...
for example, it says iqe_import.py has support for Blender 2.8, so I tryed the 2.80 version and it didn't worked..

Thank you for your attention!

@errantSquam
Copy link

It's been a solid year, but I'm new to using this tool, and after taking a look at Blender's API, replacing 'show_double_sided' with 'use_mirror_topology' fixed the issue. Hopefully this helps anyone who's trying to import IQM models in the future!

@LegendaryGuard
Copy link
Contributor

LegendaryGuard commented Apr 6, 2022

Yeah, replacing this line (655 from iqe_import.py) to mesh.use_mirror_topology = False
Worked for me, too.

mesh.show_double_sided = False

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

4 participants