BLI: Fix missing const correctness

This fix incorrect rBa837604d44a0 commit
This commit is contained in:
2023-01-31 15:36:24 +01:00
parent 6de43f6f04
commit 1cb04af1df

View File

@@ -178,12 +178,12 @@ template<typename T, int Size> struct VecBase : public vec_struct_base<T, Size>
template<BLI_ENABLE_IF_VEC(Size, >= 3)> VecBase<T, 2> xy() const
{
return *reinterpret_cast<VecBase<T, 2> *>(this);
return *reinterpret_cast<const VecBase<T, 2> *>(this);
}
template<BLI_ENABLE_IF_VEC(Size, >= 4)> VecBase<T, 3> xyz() const
{
return *reinterpret_cast<VecBase<T, 3> *>(this);
return *reinterpret_cast<const VecBase<T, 3> *>(this);
}
#undef BLI_ENABLE_IF_VEC