nextr3d / Character-UI

Blender add-on for creating simple yet functional UIs for your characters.
Apache License 2.0
61 stars 4 forks source link

Rig Layers not show correctly in the generated UIs in Blender 4.0.3 #35

Open hashhashgo opened 8 months ago

hashhashgo commented 8 months ago

The Rig->Layers box cannot show correctly in the generated UIs image

I have solved this problem.

This problem is caused by the line 666 in character_ui.py: ch.data, "layers", index=rig_layer['index'], toggle=True, text=rig_layer['name'])

However, there is no "layers" in ch.data in Blender 4.0.3. Instead, it's ch.data.collections. So, it should be: ch.data.collections[rig_layer['index']], "is_visible", toggle=True, text=rig_layer['name'])

image

It is solved as a result.