Page MenuHome

Cleanup: Use uint8_t for various flags in curves.

Authored by Jacques Lucke (JacquesLucke) on Sep 9 2020, 11:58 AM.



Previously, it was kind of a mess. In different places it was using char, short and int.

The changed properties are flags that are operated upon using bit operations. Therefore, the integer type should be unsigned. Since we only use 2 bits of these flags, uint8_t is large enough.

Especially note the change I had to make in RNA_define.h to make this work.

Diff Detail

rB Blender
curve-flags-uint (branched from master)
Build Status
Buildable 10073
Build 10073: arc lint + arc unit