The Rig->Layers box cannot show correctly in the generated UIs
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'])
The Rig->Layers box cannot show correctly in the generated UIs
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'])
It is solved as a result.