Blender Git Loki

Git Commits -> Revision 3c1e75a

Revision 3c1e75a by Jacques Lucke (master)
September 21, 2021, 15:51 (GMT)
Functions: make asserts more correct

It is valid to e.g. copy construct an integer in the same place,
because it is a trivial type. It does not work for types like std::string.

This fixes a crash reported in D12584 where it would copy a buffer
into itself. We should probably also avoid doing this copy alltogether
but that can be done separately.

Commit Details:

Full Hash: 3c1e75a2301c352dac72b1742cdd8efa2b335d6e
Parent Commit: 2df7d1e
Lines Changed: +6, -6

2 Modified Paths:

/source/blender/functions/FN_cpp_type.hh (+5, -6) (Diff)
/source/blender/functions/FN_cpp_type_make.hh (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021