diff options
author | Jacques Lucke <mail@jlucke.com> | 2019-03-05 18:44:37 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2019-03-05 18:44:47 +0300 |
commit | 55cd481bf2d85df3b7febe75c8f604ef3c5144a0 (patch) | |
tree | 8aa7e83c2e58a64d33ffbc5ab8435ec76673677a /source/blender/editors | |
parent | a4540116ba828c5b6f9b350fe28ae03eaf1d381e (diff) |
Fix T62208: constant detail picker not taking object scale into account
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index f3b0b32c8d5..800d9e6d562 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -6185,7 +6185,7 @@ static void sample_detail(bContext *C, int mx, int my) if (srd.hit && srd.edge_length > 0.0f) { /* Convert edge length to world space detail resolution. */ - sd->constant_detail = mat4_to_scale(ob->obmat) / srd.edge_length; + sd->constant_detail = 1 / (srd.edge_length * mat4_to_scale(ob->obmat)); } /* Restore context. */ |