cats-blender-plugin icon indicating copy to clipboard operation
cats-blender-plugin copied to clipboard

"Fix Model" fails on 3596f2e (development) with Blender 3.0.1

Open vijuarez opened this issue 2 years ago • 1 comments

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.

vijuarez avatar May 19 '22 02:05 vijuarez

This has fixed it for me as well. Could we res the issue?

ev3rest avatar Jun 06 '22 23:06 ev3rest