Cleanup: make it easier to check if a CPPType is a specific compile time type
This commit is contained in:
@@ -167,7 +167,7 @@ template<typename T> class GVectorArrayRef {
|
||||
public:
|
||||
GVectorArrayRef(GVectorArray &vector_array) : m_vector_array(&vector_array)
|
||||
{
|
||||
BLI_assert(vector_array.m_type == CPPType::get<T>());
|
||||
BLI_assert(vector_array.m_type.is<T>());
|
||||
}
|
||||
|
||||
void append(uint index, const T &value)
|
||||
|
||||
Reference in New Issue
Block a user