Add workaround for gcc 11 compiler bug

Differential Revision: https://developer.blender.org/D11462
This commit is contained in:
Jacques Lucke 2021-06-02 14:13:40 +02:00
parent f92f5d1ac6
commit 6cd64f8caa

@ -606,7 +606,8 @@ void read_geometry_data(AlembicProcedural *proc,
template<typename T> struct value_type_converter {
using cycles_type = float;
static constexpr TypeDesc type_desc = TypeFloat;
/* Use `TypeDesc::FLOAT` instead of `TypeFloat` to work around a compiler bug in gcc 11. */
static constexpr TypeDesc type_desc = TypeDesc::FLOAT;
static constexpr const char *type_name = "float (default)";
static cycles_type convert_value(T value)