Blender Git Loki

Git Commits -> Revision a3c4b0f

Revision a3c4b0f by Campbell Barton (master)
August 25, 2012, 20:16 (GMT)
make SWAP macros typesafe using CHECK_TYPE macro.

Its unlikely you want to do short -> int, int -> float etc, conversion during swapping (if its needed we could have a non type checking macro).

Double that the optimized assembler outbut using SWAP() remains unchanged from before.

This exposed quite a few places where redundant type conversion was going on.

Also remove curve.c's swapdata() and replace its use with swap_v3_v3()

Commit Details:

Full Hash: a3c4b0f47d1a74fe228f3329de01f774a5e6b65f
SVN Revision: 50208
Parent Commit: 699b23e
Lines Changed: +57, -31

4 Modified Paths:

/source/blender/blenkernel/intern/curve.c (+10, -28) (Diff)
/source/blender/blenlib/BLI_math_base.h (+23, -1) (Diff)
/source/blender/blenlib/BLI_utildefines.h (+23, -1) (Diff)
/source/blender/makesrna/intern/rna_object.c (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021