09th / YABEE

Export models from the Blender to Panda3D game engine
MIT License
107 stars 39 forks source link

alpha in vertex color is in vtx_ref #43

Open janEntikan opened 5 years ago

janEntikan commented 5 years ago

https://github.com/09th/YABEE/blob/5a9a99bcb9f4375f67e32fe7f679eea6645d80b4/yabee_libs/egg_writer.py#L642

this line should be:

attributes.append('<RGBA> { %f %f %f %f }' % col[:])

or it returns an error

rdb commented 5 years ago

I think some Blender versions use 4 values and some use 3. It should probably check whether Blender returned 4 values or 3 and adjust the output appropriately.