Fix #123489: GPv3: Outline modifier outputs wrong radii

This was introduced by 6ad04beff8843d63a1e77dbecbbb4d4f970223cb.
It replaced a multiplication by a division by mistake.
This commit is contained in:
Falk David 2024-06-20 16:22:50 +02:00
parent 1c56e8bc68
commit 6d301c12af

@ -190,7 +190,7 @@ static void modify_drawing(const GreasePencilOutlineModifierData &omd,
const float object_scale = math::length(
math::transform_direction(ctx.object->object_to_world(), float3(M_SQRT1_3)));
/* Legacy thickness setting is diameter in pixels, divide by 2000 to get radius. */
const float radius = math::max(omd.thickness * object_scale, 1.0f) /
const float radius = math::max(omd.thickness * object_scale, 1.0f) *
bke::greasepencil::LEGACY_RADIUS_CONVERSION_FACTOR;
/* Offset the strokes by the radius so the outside aligns with the input stroke. */
const float outline_offset = (omd.flag & MOD_GREASE_PENCIL_OUTLINE_KEEP_SHAPE) != 0 ? -radius :