Sculpt: fix gcc compiler error

This one is an actual error.  I
went through the trouble of compiling
in a linux VM and still somehow managed
to miss it.

Also fix wrong range for normal_radius_factor.
This commit is contained in:
Joseph Eagar 2021-10-11 08:36:00 -07:00
parent 318bc8ea42
commit cbaa9f723b
2 changed files with 2 additions and 2 deletions

View File

@ -167,7 +167,7 @@ void BKE_brush_default_input_curves_set(struct Brush *brush);
if ((p)->runtime.ob_mode == OB_MODE_SCULPT) { \
BKE_brush_builtin_patch(brush, tool); \
if (_old != tool) { \
BKE_brush_sculpt_reset(brush, tool); \
BKE_brush_sculpt_reset(brush); \
} \
} \
} \

View File

@ -273,7 +273,7 @@ places in rna_engine_codebase are relevent:
{-1}
})
MAKE_FLOAT(normal_radius_factor, "Normal Radius", "Ratio between the brush radius and the radius that is going to be "
"used to sample the normal", 0.5f, 0.0f, 1.0f)
"used to sample the normal", 0.5f, 0.0f, 2.0f)
MAKE_FLOAT(hardness, "Hardness", "Brush falloff hardness", 0.0f, 0.0f, 1.0f)
MAKE_FLOAT(tip_roundness, "Tip Roundness", "", 1.0f, 0.0f, 1.0f)
MAKE_BOOL(accumulate, "Accumulate", "", false)