mirror of
https://github.com/blender/blender-addons.git
synced 2025-07-21 23:46:24 +00:00
Fix #105292: AnimAll: Error in load_post
Following 9d5b1c5d
AnimAll would try to update animation data on file
load, but did not check that the animation data existed first.
This commit is contained in:
@ -664,7 +664,8 @@ def update_attribute_animation(_):
|
||||
("edges", "crease"): ("crease_edge", "FLOAT", "EDGE"),
|
||||
}
|
||||
for mesh in bpy.data.meshes:
|
||||
print(f"Updating {mesh.name}")
|
||||
if mesh.animation_data is None:
|
||||
continue
|
||||
for fcurve in mesh.animation_data.action.fcurves:
|
||||
if fcurve.data_path.startswith("vertex_colors"):
|
||||
# Update pre-3.3 vertex colors
|
||||
|
Reference in New Issue
Block a user