Skip to content

Commit

Permalink
Put back the catchall for cases where we don't recognize the name
Browse files Browse the repository at this point in the history
  • Loading branch information
sercero committed Aug 5, 2024
1 parent 1ac8314 commit 661ede7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions io_ogre/ogre/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ def __init__(self, mesh):
Report.warnings.append( 'Mesh "%s" with color attribute "%s" has wrong color data type: "%s" (should be: "BYTE_COLOR")' % \
(mesh.name, key, colors.data_type) )

if self.__colors is None:
# No color found by name, assume that the only vertex color data is actual color data
logger.debug("No color found by name, assume that the only vertex color data is actual color data")
self.__colors = colors

if self.__colors:
self.__colors = [x.color for x in self.__colors.data]
#self.__colors = [x.color_srgb for x in self.__colors.data]
Expand Down

0 comments on commit 661ede7

Please sign in to comment.