Skip to content

Commit

Permalink
Remove false positive warning
Browse files Browse the repository at this point in the history
  • Loading branch information
julienduroure committed Jun 1, 2024
1 parent 986a45a commit 914f90e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,8 @@ def manage_material_info(self):
pass # Using the same Vertex Color

elif base_material is not None and self.export_settings['gltf_vertex_color'] == "MATERIAL":
if warning_already_displayed_vc_nodetree is False:
# Check if there is an active Vertex Color in mesh
if warning_already_displayed_vc_nodetree is False and self.blender_mesh.color_attributes.active_index != -1:
self.export_settings['log'].warning('The active Vertex Color will not be exported, as it is not used in the node tree of the material')
warning_already_displayed_vc_nodetree = True

Expand Down

0 comments on commit 914f90e

Please sign in to comment.