Fix T74501: Wrong initial iteration when using mask expand

The initial iteration for all symmetry areas is always 0. We were using
1 for the main stroke, so it was 1 step behind.

This was broken for expanding masks and face sets, but with face sets it
is more noticeable.

Reviewed By: brecht

Maniphest Tasks: T74501

Differential Revision: https://developer.blender.org/D7050
This commit is contained in:
Pablo Dobarro 2020-03-06 16:44:17 +01:00
parent 7760cec5dc
commit db1d711458
Notes: blender-bot 2023-02-13 23:16:02 +01:00
Referenced by issue #74501, Expand Face Set symmetry is broken
1 changed files with 1 additions and 1 deletions

View File

@ -10031,7 +10031,7 @@ static int sculpt_mask_expand_invoke(bContext *C, wmOperator *op, const wmEvent
ss->filter_cache->mask_update_last_it = 1;
ss->filter_cache->mask_update_current_it = 1;
ss->filter_cache->mask_update_it[SCULPT_active_vertex_get(ss)] = 1;
ss->filter_cache->mask_update_it[SCULPT_active_vertex_get(ss)] = 0;
copy_v3_v3(ss->filter_cache->mask_expand_initial_co, SCULPT_active_vertex_co_get(ss));