UI side Translations complete

This commit is contained in:
Yusarina
2024-07-25 02:46:13 +01:00
parent 05cc6c830c
commit b6beae7ba1
7 changed files with 103 additions and 93 deletions
+3 -5
View File
@@ -18,7 +18,7 @@ class AvatarToolkitVisemePanel(bpy.types.Panel):
armature = get_selected_armature(context)
if armature:
layout.prop(context.scene, "selected_mesh", text="Select Mesh")
layout.prop(context.scene, "selected_mesh", text=t("VisemePanel.select_mesh"))
mesh = bpy.data.objects.get(context.scene.selected_mesh)
if mesh and mesh.type == 'MESH':
@@ -27,9 +27,9 @@ class AvatarToolkitVisemePanel(bpy.types.Panel):
layout.prop_search(context.scene, "mouth_o", mesh.data.shape_keys, "key_blocks", text=t('VisemePanel.mouth_o.label'))
layout.prop_search(context.scene, "mouth_ch", mesh.data.shape_keys, "key_blocks", text=t('VisemePanel.mouth_ch.label'))
layout.prop(context.scene, 'shape_intensity')
layout.prop(context.scene, 'shape_intensity', text=t('VisemePanel.shape_intensity'))
layout.operator("avatar_toolkit.create_visemes", icon='TRIA_RIGHT')
layout.operator("avatar_toolkit.create_visemes", text=t('VisemePanel.create_visemes'), icon='TRIA_RIGHT')
else:
layout.label(text=t('VisemePanel.error.noShapekeys'), icon='ERROR')
else:
@@ -39,5 +39,3 @@ class AvatarToolkitVisemePanel(bpy.types.Panel):
layout.separator()
layout.label(text=t('VisemePanel.info.selectMesh'))