Vertex Paint: smear got wrong last-location
This commit is contained in:
@@ -1584,7 +1584,7 @@ static void do_wpaint_brush_smear_task_cb_ex(
|
|||||||
sub_v3_v3v3(brush_dir, cache->location, cache->last_location);
|
sub_v3_v3v3(brush_dir, cache->location, cache->last_location);
|
||||||
project_plane_v3_v3v3(brush_dir, brush_dir, cache->view_normal);
|
project_plane_v3_v3v3(brush_dir, brush_dir, cache->view_normal);
|
||||||
|
|
||||||
if (normalize_v3(brush_dir) != 0.0f) {
|
if (cache->is_last_valid && (normalize_v3(brush_dir) != 0.0f)) {
|
||||||
|
|
||||||
SculptBrushTest test;
|
SculptBrushTest test;
|
||||||
SculptBrushTestFn sculpt_brush_test_sq_fn =
|
SculptBrushTestFn sculpt_brush_test_sq_fn =
|
||||||
@@ -2661,7 +2661,7 @@ static void do_vpaint_brush_smear_task_cb_ex(
|
|||||||
sub_v3_v3v3(brush_dir, cache->location, cache->last_location);
|
sub_v3_v3v3(brush_dir, cache->location, cache->last_location);
|
||||||
project_plane_v3_v3v3(brush_dir, brush_dir, cache->view_normal);
|
project_plane_v3_v3v3(brush_dir, brush_dir, cache->view_normal);
|
||||||
|
|
||||||
if (normalize_v3(brush_dir) != 0.0f) {
|
if (cache->is_last_valid && (normalize_v3(brush_dir) != 0.0f)) {
|
||||||
|
|
||||||
SculptBrushTest test;
|
SculptBrushTest test;
|
||||||
SculptBrushTestFn sculpt_brush_test_sq_fn =
|
SculptBrushTestFn sculpt_brush_test_sq_fn =
|
||||||
|
|||||||
@@ -3598,6 +3598,7 @@ void sculpt_cache_calc_brushdata_symm(
|
|||||||
const char axis, const float angle)
|
const char axis, const float angle)
|
||||||
{
|
{
|
||||||
flip_v3_v3(cache->location, cache->true_location, symm);
|
flip_v3_v3(cache->location, cache->true_location, symm);
|
||||||
|
flip_v3_v3(cache->last_location, cache->true_last_location, symm);
|
||||||
flip_v3_v3(cache->grab_delta_symmetry, cache->grab_delta, symm);
|
flip_v3_v3(cache->grab_delta_symmetry, cache->grab_delta, symm);
|
||||||
flip_v3_v3(cache->view_normal, cache->true_view_normal, symm);
|
flip_v3_v3(cache->view_normal, cache->true_view_normal, symm);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user