Merge branch 'Alpha-2' into Amrature-Validation-P2

This commit is contained in:
Yusarina
2025-03-24 02:14:41 +00:00
committed by GitHub
3 changed files with 16 additions and 5 deletions
+2 -2
View File
@@ -28,13 +28,13 @@ class AvatarToolKit_PT_VisemesPanel(Panel):
armature = get_active_armature(context)
if armature:
col.prop_search(props, "viseme_mesh", bpy.data, "objects", text="")
col.prop(props, "viseme_mesh", text="")
else:
col.label(text=t("Visemes.no_armature"), icon='ERROR')
# Get selected mesh
mesh_obj = bpy.data.objects.get(props.viseme_mesh)
if not mesh_obj or not mesh_obj.data.shape_keys:
if not mesh_obj or not mesh_obj.data or not mesh_obj.data.shape_keys:
layout.label(text=t("Visemes.no_shapekeys"))
return