2026-02-16

This commit is contained in:
2026-03-17 15:25:32 -06:00
parent d5dd373de0
commit 60100fbab2
560 changed files with 33397 additions and 20776 deletions
@@ -98,10 +98,9 @@ def __get_non_material_library_enums_by_type():
enums = []
for m in bpy.data.materials:
if not m.flip_fluid_material_library.is_library_material:
if vcu.is_blender_30():
# material preview can be None in Blender 3.0. Use the preview_ensure function
# to make sure the preview is loaded
m.preview_ensure()
# material preview can be None in Blender 3.0+. Use the preview_ensure function
# to make sure the preview is loaded
m.preview_ensure()
e = (m.name, m.name, "", m.preview.icon_id, __get_non_material_library_material_hash(m))
enums.append(e)
return enums