diff options
author | Jacques Lucke <jacques@blender.org> | 2020-06-27 14:28:26 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-06-27 14:28:46 +0300 |
commit | 235015910133aaa50f8398680357af4a92e12778 (patch) | |
tree | 98756bfb123234bf68c3d5546e63668813f408c8 /source/blender/functions/FN_array_spans.hh | |
parent | 563670ff9e7421abc87095dab78e89ef23499253 (diff) |
Cleanup: make it easier to check if a CPPType is a specific compile time type
Diffstat (limited to 'source/blender/functions/FN_array_spans.hh')
-rw-r--r-- | source/blender/functions/FN_array_spans.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/functions/FN_array_spans.hh b/source/blender/functions/FN_array_spans.hh index fac2ef42c9d..acd3e921b50 100644 --- a/source/blender/functions/FN_array_spans.hh +++ b/source/blender/functions/FN_array_spans.hh @@ -184,7 +184,7 @@ class GVArraySpan : public VArraySpanBase<void> { template<typename T> VArraySpan<T> typed() const { - BLI_assert(CPPType::get<T>() == *m_type); + BLI_assert(m_type->is<T>()); return VArraySpan<T>(*this); } |