Skip to content

Commit

Permalink
Hotfix bertex color
Browse files Browse the repository at this point in the history
  • Loading branch information
xavier150 committed Aug 9, 2022
1 parent 69d5399 commit 1adc6cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blender-for-unrealengine/export/bfu_export_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 1adc6cc

Please sign in to comment.