diff options
author | Jacques Lucke <jacques@blender.org> | 2021-06-02 15:13:40 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-06-02 15:13:55 +0300 |
commit | 6cd64f8caacc1a7c679d962a053f73263fc18c2c (patch) | |
tree | 82524017ef970438f8339b5941539314604a7ff4 /intern | |
parent | f92f5d1ac62c66ceb7a6ac1ff69084fbd5e3614a (diff) |
Add workaround for gcc 11 compiler bug
Differential Revision: https://developer.blender.org/D11462
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/render/alembic_read.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/intern/cycles/render/alembic_read.cpp b/intern/cycles/render/alembic_read.cpp index 4d09c40b07b..33ce3502879 100644 --- a/intern/cycles/render/alembic_read.cpp +++ b/intern/cycles/render/alembic_read.cpp @@ -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) |