Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-09-16 13:23:23 +0300
committerJacques Lucke <jacques@blender.org>2020-09-16 13:23:23 +0300
commit27a5da4dc3a399e1fe7e88dc8722a891e9cfcf78 (patch)
tree7ad797f8746a58e527ed301bf7bcab4a389bb687 /source/blender/editors/transform/transform_data.h
parentd376aea61840587eddcf75386b804673e5593d60 (diff)
Cleanup: use uint8_t for various flags in curves
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. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D8844
Diffstat (limited to 'source/blender/editors/transform/transform_data.h')
-rw-r--r--source/blender/editors/transform/transform_data.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform_data.h b/source/blender/editors/transform/transform_data.h
index bca6a99e35a..18191f18430 100644
--- a/source/blender/editors/transform/transform_data.h
+++ b/source/blender/editors/transform/transform_data.h
@@ -114,8 +114,8 @@ typedef struct TransData2D {
* Also to unset temporary flags.
*/
typedef struct TransDataCurveHandleFlags {
- char ih1, ih2;
- char *h1, *h2;
+ uint8_t ih1, ih2;
+ uint8_t *h1, *h2;
} TransDataCurveHandleFlags;
typedef struct TransData {