Bug Fixes
- Fixes issue where some tools would not be displayed, fixes: #120 - Fixes issue with the resonite utils throwing errors. - Fixes issue with visemes panel throwing errors. - Fixes issue where the viseme mesh selector was showing all objects (Armature and etc) it now just shows meshes.
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