cats-blender-plugin
cats-blender-plugin copied to clipboard
"Fix Model" fails on 3596f2e (development) with Blender 3.0.1
After importing a VRM model, trying to use the "Fix Model" function fails:
Python: Traceback (most recent call last):
File "/home/vijuarez/.config/blender/3.0/scripts/addons/cats-blender-plugin-development/tools/armature.py", line 363, in execute
scene.collection.children.link(coll)
NameError: name 'scene' is not defined. Did you mean: 'spine'?
I'm unfamiliar with the codebase, but it seems to me like a pretty innocuous typo. Switching scene
for the first object I found called similarly upstream seems to have fixed the problem:
scene.collection.children.link(coll)
bpy.context.scene.collection.children.link(coll)
Unless I'm missing something (I might be), it should be a trivial fix.
This has fixed it for me as well. Could we res the issue?