From 1adc6ccedafbe375c7b671442f15b66958cbc052 Mon Sep 17 00:00:00 2001 From: Xavier Loux Date: Tue, 9 Aug 2022 21:07:54 +0200 Subject: [PATCH] Hotfix bertex color --- blender-for-unrealengine/export/bfu_export_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blender-for-unrealengine/export/bfu_export_utils.py b/blender-for-unrealengine/export/bfu_export_utils.py index f97f0d31..0f15f6be 100644 --- a/blender-for-unrealengine/export/bfu_export_utils.py +++ b/blender-for-unrealengine/export/bfu_export_utils.py @@ -368,7 +368,8 @@ def SetVertexColorForUnrealExport(parent): obj.data.vertex_colors.active_index = vced.index new_vertex_color = obj.data.vertex_colors.new() - new_vertex_color.name = "BFU_VertexColorExportName" + if new_vertex_color: + new_vertex_color.name = "BFU_VertexColorExportName" number = len(obj.data.vertex_colors) - 1 for i in range(number):