From 7ffd73100e265c4b6eb5e8c260e039f3738cc752 Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Thu, 8 Jun 2023 10:21:54 +0200 Subject: [PATCH] Fix #106759: Error on running blender_icons_geom.py with curve 288e7d0af0c2 added support for legacy curves, these dont have attributes though, but code was checking for an active color atttribute. Now, only do this check (and skip that object) if it has no attributes (or doesnt have vertex or active color atttribute). Pull Request: https://projects.blender.org/blender/blender/pulls/108647 --- release/datafiles/blender_icons_geom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release/datafiles/blender_icons_geom.py b/release/datafiles/blender_icons_geom.py index 45447892700..18cadd427bf 100644 --- a/release/datafiles/blender_icons_geom.py +++ b/release/datafiles/blender_icons_geom.py @@ -350,7 +350,7 @@ def main(): if name.rpartition(".")[2].isdigit(): continue - if not ob_eval.data.attributes.active_color: + if (not hasattr(ob_eval.data, 'attributes')) or not ob_eval.data.attributes.active_color: print("Skipping:", name, "(no vertex colors)") continue