Merge branch 'Alpha-2' into Amrature-Validation-P2
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user