[Bf-blender-cvs] [9cd357768de] functions-experimental-refactor: fix
Jacques Lucke
noreply at git.blender.org
Tue Oct 15 15:57:03 CEST 2019
Commit: 9cd357768de2af7b5e3af661bacdab51717e1225
Author: Jacques Lucke
Date: Thu Oct 10 22:21:24 2019 +0200
Branches: functions-experimental-refactor
https://developer.blender.org/rB9cd357768de2af7b5e3af661bacdab51717e1225
fix
===================================================================
M source/blender/blenkernel/BKE_tuple.h
===================================================================
diff --git a/source/blender/blenkernel/BKE_tuple.h b/source/blender/blenkernel/BKE_tuple.h
index 7385ecfd359..e6031378f5b 100644
--- a/source/blender/blenkernel/BKE_tuple.h
+++ b/source/blender/blenkernel/BKE_tuple.h
@@ -85,9 +85,7 @@ class TupleInfo : BLI::NonCopyable, BLI::NonMovable {
template<typename T> bool element_has_type(uint index) const
{
- CPPType *expected_type = m_types[index];
- CPPType *actual_type == GET_TYPE<T>();
- return expected_type == actual_type;
+ return GET_TYPE<T>().is_same_or_generalization(*m_types[index]);
}
};
More information about the Bf-blender-cvs
mailing list