Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/paint_vertex.c
| Show First 20 Lines • Show All 2,290 Lines • ▼ Show 20 Lines | static void wpaint_do_symmetrical_brush_actions( | ||||
| Brush *brush = BKE_paint_brush(&wp->paint); | Brush *brush = BKE_paint_brush(&wp->paint); | ||||
| Mesh *me = ob->data; | Mesh *me = ob->data; | ||||
| SculptSession *ss = ob->sculpt; | SculptSession *ss = ob->sculpt; | ||||
| StrokeCache *cache = ss->cache; | StrokeCache *cache = ss->cache; | ||||
| const char symm = SCULPT_mesh_symmetry_xyz_get(ob); | const char symm = SCULPT_mesh_symmetry_xyz_get(ob); | ||||
| int i = 0; | int i = 0; | ||||
| /* initial stroke */ | /* initial stroke */ | ||||
| cache->mirror_symmetry_pass = 0; | |||||
| wpaint_do_paint(C, ob, wp, sd, wpd, wpi, me, brush, 0, 'X', 0, 0); | wpaint_do_paint(C, ob, wp, sd, wpd, wpi, me, brush, 0, 'X', 0, 0); | ||||
| wpaint_do_radial_symmetry(C, ob, wp, sd, wpd, wpi, me, brush, 0, 'X'); | wpaint_do_radial_symmetry(C, ob, wp, sd, wpd, wpi, me, brush, 0, 'X'); | ||||
| wpaint_do_radial_symmetry(C, ob, wp, sd, wpd, wpi, me, brush, 0, 'Y'); | wpaint_do_radial_symmetry(C, ob, wp, sd, wpd, wpi, me, brush, 0, 'Y'); | ||||
| wpaint_do_radial_symmetry(C, ob, wp, sd, wpd, wpi, me, brush, 0, 'Z'); | wpaint_do_radial_symmetry(C, ob, wp, sd, wpd, wpi, me, brush, 0, 'Z'); | ||||
| cache->symmetry = symm; | cache->symmetry = symm; | ||||
| /* symm is a bit combination of XYZ - 1 is mirror | /* symm is a bit combination of XYZ - 1 is mirror | ||||
| ▲ Show 20 Lines • Show All 1,004 Lines • ▼ Show 20 Lines | static void vpaint_do_symmetrical_brush_actions( | ||||
| Brush *brush = BKE_paint_brush(&vp->paint); | Brush *brush = BKE_paint_brush(&vp->paint); | ||||
| Mesh *me = ob->data; | Mesh *me = ob->data; | ||||
| SculptSession *ss = ob->sculpt; | SculptSession *ss = ob->sculpt; | ||||
| StrokeCache *cache = ss->cache; | StrokeCache *cache = ss->cache; | ||||
| const char symm = SCULPT_mesh_symmetry_xyz_get(ob); | const char symm = SCULPT_mesh_symmetry_xyz_get(ob); | ||||
| int i = 0; | int i = 0; | ||||
| /* initial stroke */ | /* initial stroke */ | ||||
| cache->mirror_symmetry_pass = 0; | |||||
| vpaint_do_paint(C, sd, vp, vpd, ob, me, brush, i, 'X', 0, 0); | vpaint_do_paint(C, sd, vp, vpd, ob, me, brush, i, 'X', 0, 0); | ||||
| vpaint_do_radial_symmetry(C, sd, vp, vpd, ob, me, brush, i, 'X'); | vpaint_do_radial_symmetry(C, sd, vp, vpd, ob, me, brush, i, 'X'); | ||||
| vpaint_do_radial_symmetry(C, sd, vp, vpd, ob, me, brush, i, 'Y'); | vpaint_do_radial_symmetry(C, sd, vp, vpd, ob, me, brush, i, 'Y'); | ||||
| vpaint_do_radial_symmetry(C, sd, vp, vpd, ob, me, brush, i, 'Z'); | vpaint_do_radial_symmetry(C, sd, vp, vpd, ob, me, brush, i, 'Z'); | ||||
| cache->symmetry = symm; | cache->symmetry = symm; | ||||
| /* symm is a bit combination of XYZ - 1 is mirror | /* symm is a bit combination of XYZ - 1 is mirror | ||||
| ▲ Show 20 Lines • Show All 182 Lines • Show Last 20 Lines | |||||