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

blend file with shape keys and modifier causes crash #80

Closed
william-lohan opened this issue May 24, 2023 · 2 comments
Closed

blend file with shape keys and modifier causes crash #80

william-lohan opened this issue May 24, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@william-lohan
Copy link

william-lohan commented May 24, 2023

error

RuntimeError: Error: Modifier cannot be applied to a mesh with shape keys

steps

Blender 3.5.1 (hash 6ee8aa4997ee built 2023-05-06 00:20:19)
Read prefs: /home/will/.config/blender/3.5/config/userpref.blend
Failed to open dir (No such file or directory): /run/user/1000/gvfs/
Reloading external rigs...
Reloading external metarigs...
Read blend: /home/will/source/my-panda-py/models/low_poly_cat.blend
Error: Modifier cannot be applied to a mesh with shape keys
Traceback (most recent call last):
File "/home/will/.local/lib/python3.11/site-packages/blend2bam/blend2gltf/../blender_script_common.py", line 34, in convert_files
convertfn(settings, src, dst)
File "/home/will/.local/lib/python3.11/site-packages/blend2bam/blend2gltf/blender28_script.py", line 168, in export_gltf
prepare_meshes()
File "/home/will/.local/lib/python3.11/site-packages/blend2bam/blend2gltf/blender28_script.py", line 153, in prepare_meshes
bpy.ops.object.modifier_apply(modifier=modifier.name)
File "/usr/share/blender/3.5/scripts/modules/bpy/ops.py", line 113, in call
ret = _op_call(self.idname_py(), None, kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Error: Modifier cannot be applied to a mesh with shape keys

Failed to convert /home/will/source/my-panda-py/models/low_poly_cat.blend to gltf
Traceback (most recent call last):
File "/home/will/.local/lib/python3.11/site-packages/blend2bam/cli.py", line 88, in convert
src2tmp.convert_single(srcfile, tmpfile.name)
File "/home/will/.local/lib/python3.11/site-packages/blend2bam/blend2gltf/init.py", line 47, in convert_single
self.convert_batch(srcroot, dstdir, files)
File "/home/will/.local/lib/python3.11/site-packages/blend2bam/blend2gltf/init.py", line 62, in convert_batch
blenderutils.run_blender_script(self.script_file, args, blenderdir=blenderdir)
File "/home/will/.local/lib/python3.11/site-packages/blend2bam/blenderutils.py", line 29, in run_blender_script
run_blender(
File "/home/will/.local/lib/python3.11/site-packages/blend2bam/blenderutils.py", line 25, in run_blender
subprocess.check_call(binpath + ['--background'] + args, stdout=None)#subprocess.DEVNULL)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['blender', '--background', '-P', '/home/will/.local/lib/python3.11/site-packages/blend2bam/blend2gltf/blender28_script.py', '--', '/tmp/tmplz3ucz1r', '/home/will/source/my-panda-py/models', '/tmp', '/home/will/source/my-panda-py/models/low_poly_cat.blend']' returned non-zero exit status 1.

Failed to convert all files

@william-lohan
Copy link
Author

moved to Moguri/panda3d-gltf#121

@Moguri
Copy link
Owner

Moguri commented May 30, 2023

I am going to reopen this one since (based on the error output) it is a blend2bam issue and not panda3d-gltf.

@Moguri Moguri reopened this May 30, 2023
@Moguri Moguri added the bug Something isn't working label May 30, 2023
@Moguri Moguri closed this as completed in 0a0b393 May 31, 2023
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