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

mu file from DeepFreeze fails to import #76

Open
JonnyOThan opened this issue Aug 30, 2023 · 1 comment
Open

mu file from DeepFreeze fails to import #76

JonnyOThan opened this issue Aug 30, 2023 · 1 comment

Comments

@JonnyOThan
Copy link

model.zip

This model file from deepfreeze cannot be imported with the blender plugin, but it works fine in unity and in-game.

Python: Traceback (most recent call last):
  File "C:\Users\Jon\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\io_object_mu-master\import_mu\operators.py", line 79, in execute
    return import_mu_op(self, context, **keywords)
  File "C:\Users\Jon\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\io_object_mu-master\import_mu\operators.py", line 37, in import_mu_op
    ret = import_mu(collection, filepath, create_colliders, force_armature, force_mesh)
  File "C:\Users\Jon\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\io_object_mu-master\import_mu\import_mu.py", line 203, in import_mu
    return process_mu(mu, os.path.dirname(filepath)), mu
  File "C:\Users\Jon\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\io_object_mu-master\import_mu\import_mu.py", line 186, in process_mu
    create_materials(mu)
  File "C:\Users\Jon\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\io_object_mu-master\import_mu\import_mu.py", line 165, in create_materials
    mumat.material = make_shader(mumat, mu)
  File "C:\Users\Jon\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\io_object_mu-master\shader\shader.py", line 246, in make_shader
    return make_shader4(mumat, mu)
  File "C:\Users\Jon\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\io_object_mu-master\shader\shader.py", line 242, in make_shader4
    make_shader_tex_prop(mu, mumat.textureProperties, matprops.texture.properties, ctx)
  File "C:\Users\Jon\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\io_object_mu-master\shader\shader.py", line 202, in make_shader_tex_prop
    set_tex(mu, item, muprop[k], context)
  File "C:\Users\Jon\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\io_object_mu-master\shader\shader.py", line 178, in set_tex
    dst.type = tex.type
TypeError: bpy_struct: item.attr = val: MuTextureProperties.type expected True/False or 0/1, not int

location: <unknown location>:-1


popos123 added a commit to popos123/io_object_mu that referenced this issue Jul 28, 2024
@popos123
Copy link

fixed in new pull request 🙃

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