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

exporter for blender 4.1 is not working. #65

Open
nerondes opened this issue May 10, 2024 · 6 comments
Open

exporter for blender 4.1 is not working. #65

nerondes opened this issue May 10, 2024 · 6 comments

Comments

@nerondes
Copy link

Exporter for blender 4.1 is not working. I had this problem with a different plugin. I think there were changes in this structure in 4.1 unlike 4.0. Some old plugins are not working. Do you plan to update it?

This is what I read on the blender side about the subject.
https://developer.blender.org/docs/release_notes/4.1/python_api/#mesh

Thanks in advance.

Python: Traceback (most recent call last):
File "C:\Users\xxxxx\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\iqm_export.py", line 1136, in execute
exportIQM(context, self.properties.filepath, self.properties.usemesh, self.properties.usemods, self.properties.useskel, self.properties.usebbox, self.properties.usecol, self.properties.usescale, self.properties.animspec, matfun, self.properties.derigify, self.properties.boneorder, self.properties.namedmaterialmeshes)
File "C:\Users\xxxx\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\iqm_export.py", line 1072, in exportIQM
meshes = collectMeshes(context, bones, scale, matfun, useskel, usecol, usemods, filetype, namedmaterialmeshes)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xxxxxx\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\iqm_export.py", line 825, in collectMeshes
data.calc_normals_split()
^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Mesh' object has no attribute 'calc_normals_split'

@lsalzman
Copy link
Owner

I am kind of out of the loop with recent Blender versions. Do you want to investigate how the script needs to be modified to work with 4.1?

@lsalzman
Copy link
Owner

It seems like if the offending call is removed from the script, it might just work. Is that so?

@Rev3n4nt
Copy link

Accidentally updated Blender to 4.1 on Linux and plugin does not work anymore

@Xury46
Copy link

Xury46 commented Jun 1, 2024

It seems like if the offending call is removed from the script, it might just work. Is that so?

I just gave this a shot, and indeed that works.
I cloned the repo and made a branch for this, if you give me access I can make a pull request :)

@lsalzman
Copy link
Owner

lsalzman commented Jun 1, 2024

I committed an initial version of the 4.1 exporter that just removes that call. I was just waiting for someone to confirm whether that worked or not. In any case, let's just keep trialing this and if there are further problems we can address them as they come along.

@Xury46
Copy link

Xury46 commented Jun 1, 2024

Wow, thank you for the quick turn around! That's really exciting. Now that the GZDoom engine supports IQM I imagine this exporter will be even more popular than it was before, so keeping it working is greatly appreciated.

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