Cleanup: use bool for brush checks
This commit is contained in:
parent
974053f7e9
commit
3c67efbbc5
|
@ -103,9 +103,9 @@ void BKE_brush_alpha_set(struct Scene *scene, struct Brush *brush, float alpha);
|
|||
float BKE_brush_weight_get(const struct Scene *scene, const struct Brush *brush);
|
||||
void BKE_brush_weight_set(const struct Scene *scene, struct Brush *brush, float value);
|
||||
|
||||
int BKE_brush_use_locked_size(const struct Scene *scene, const struct Brush *brush);
|
||||
int BKE_brush_use_alpha_pressure(const struct Scene *scene, const struct Brush *brush);
|
||||
int BKE_brush_use_size_pressure(const struct Scene *scene, const struct Brush *brush);
|
||||
bool BKE_brush_use_locked_size(const struct Scene *scene, const struct Brush *brush);
|
||||
bool BKE_brush_use_alpha_pressure(const struct Scene *scene, const struct Brush *brush);
|
||||
bool BKE_brush_use_size_pressure(const struct Scene *scene, const struct Brush *brush);
|
||||
|
||||
/* scale unprojected radius to reflect a change in the brush's 2D size */
|
||||
void BKE_brush_scale_unprojected_radius(
|
||||
|
|
|
@ -821,7 +821,7 @@ int BKE_brush_size_get(const Scene *scene, const Brush *brush)
|
|||
return size;
|
||||
}
|
||||
|
||||
int BKE_brush_use_locked_size(const Scene *scene, const Brush *brush)
|
||||
bool BKE_brush_use_locked_size(const Scene *scene, const Brush *brush)
|
||||
{
|
||||
const short us_flag = scene->toolsettings->unified_paint_settings.flag;
|
||||
|
||||
|
@ -830,7 +830,7 @@ int BKE_brush_use_locked_size(const Scene *scene, const Brush *brush)
|
|||
(brush->flag & BRUSH_LOCK_SIZE);
|
||||
}
|
||||
|
||||
int BKE_brush_use_size_pressure(const Scene *scene, const Brush *brush)
|
||||
bool BKE_brush_use_size_pressure(const Scene *scene, const Brush *brush)
|
||||
{
|
||||
const short us_flag = scene->toolsettings->unified_paint_settings.flag;
|
||||
|
||||
|
@ -839,7 +839,7 @@ int BKE_brush_use_size_pressure(const Scene *scene, const Brush *brush)
|
|||
(brush->flag & BRUSH_SIZE_PRESSURE);
|
||||
}
|
||||
|
||||
int BKE_brush_use_alpha_pressure(const Scene *scene, const Brush *brush)
|
||||
bool BKE_brush_use_alpha_pressure(const Scene *scene, const Brush *brush)
|
||||
{
|
||||
const short us_flag = scene->toolsettings->unified_paint_settings.flag;
|
||||
|
||||
|
|
Loading…
Reference in New Issue