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

Doesnt work in blender 4.1 #184

Open
Fennecai opened this issue May 8, 2024 · 2 comments
Open

Doesnt work in blender 4.1 #184

Fennecai opened this issue May 8, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Fennecai
Copy link

Fennecai commented May 8, 2024

Describe the bug
due to the removal of the auto smoothing feature in blender 4.1, in favor of a modifier that does the same thing (smooth by angle modifier), this addon no longer works on model importing.

To Reproduce
Steps to reproduce the behavior:

  1. import a vmf or model in blender 4.1
  2. see the errors

Expected behavior
i expected the models/vmf to import correctly, but they dont import at all.

Related files
it does this with any mdl or vmf containing models, so...

Logs

AttributeError: 'Mesh' object has no attribute 'use_auto_smooth'
[Plumber] [ERROR] Asset importing errored: AttributeError: 'Mesh' object has no attribute 'use_auto_smooth'
Traceback (most recent call last):
  File "C:\Users\[REDACTED]\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\plumber\asset\__init__.py", line 61, in model
    self.model_tracker.import_model(model, self.prop_collection)
  File "C:\Users\[REDACTED]\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\plumber\asset\model.py", line 80, in import_model
    mesh_obj = import_mesh(
               ^^^^^^^^^^^^
  File "C:\Users\[REDACTED]\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\plumber\asset\model.py", line 176, in import_mesh
    mesh_data.use_auto_smooth = True
    ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Mesh' object has no attribute 'use_auto_smooth'
[Plumber] [ERROR] Asset importing errored: AttributeError: 'Mesh' object has no attribute 'use_auto_smooth'
[Plumber] [INFO] vmf imported in 4.71 s
Info: Deleted 1 object(s)

Screenshots
Not applicable, theres nothing there because it doesnt import.

Details (please complete the following information):

  • OS: Windows 11
  • Blender Version: 4.1+
  • Addon Version: latest release, 1.0.1
  • Did you download a release or build the addon yourself: downloaded the release
  • Related Game: any game, tried using garry's mod with custom paths to all other source engine games content.

Additional context
im suprised nobody has reported this yet.

@Fennecai Fennecai added the bug Something isn't working label May 8, 2024
@lazyRares
Copy link

Ah, so that's why it's doing that. I was getting the error myself but I was not sure on the cause of it. Thankfully you have discovered it though, hope to see this fixed eventually.

@Fennecai
Copy link
Author

I fixed it by editing the script on my end. my fix maybe isnt up to the best coding practices since i have very little experience in python (just in other languages) but it works without any issues.

i dont know how pull requests work or even what they are really, so if anybody wants my patch before the addon is patched officially, here is my modified version of plumber/asset/model.py

https://mega.nz/folder/omwBQK4A#BGzm5qmKftDSYOuPWurVrw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants