gallantlab / pycortex

Pycortex is a python-based toolkit for surface visualization of fMRI data
https://gallantlab.github.io/pycortex
BSD 2-Clause "Simplified" License
592 stars 138 forks source link

MAINT Deal with rgb vs rgba for different blender versions. #430

Closed cchen23 closed 2 years ago

cchen23 commented 2 years ago

The MeshColorLoop object uses 3-dimensional rgb colors in blender 2.79, but uses 4-dimensional rgba colors in blender 3.0.1.

This PR updates add_vcolor to deal with this change: the blender version is detected, and the corresponding color format is used.