diff options
author | Campbell Barton <campbell@blender.org> | 2022-08-26 07:37:16 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-08-26 07:37:16 +0300 |
commit | 5bd4aea29c00a2d56df7d873764cc3a380ac9e9e (patch) | |
tree | 6ae77b0bb38967fb1093f5b57dafcff749520b4d /source/blender/makesrna/intern/rna_brush.c | |
parent | 4a0dd1d4352c4a0573fd3887a8163deeafd3464c (diff) |
Cleanup: use matching function signatures for RNA callbacks
Use matching int/float/boo types for RNA callbacks.
Diffstat (limited to 'source/blender/makesrna/intern/rna_brush.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_brush.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_brush.c b/source/blender/makesrna/intern/rna_brush.c index e0d55050c63..82eb390df52 100644 --- a/source/blender/makesrna/intern/rna_brush.c +++ b/source/blender/makesrna/intern/rna_brush.c @@ -765,11 +765,11 @@ static void rna_Brush_set_size(PointerRNA *ptr, int value) brush->size = value; } -static void rna_Brush_use_gradient_set(PointerRNA *ptr, bool value) +static void rna_Brush_use_gradient_set(PointerRNA *ptr, int value) { Brush *br = (Brush *)ptr->data; - if (value) { + if (value & BRUSH_USE_GRADIENT) { br->flag |= BRUSH_USE_GRADIENT; } else { |