Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/sculpt.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 2,460 Lines • ▼ Show 20 Lines | else if (ss->texcache) { | ||||
| float symm_point[3], point_2d[2]; | float symm_point[3], point_2d[2]; | ||||
| /* Quite warnings. */ | /* Quite warnings. */ | ||||
| float x = 0.0f, y = 0.0f; | float x = 0.0f, y = 0.0f; | ||||
| /* If the active area is being applied for symmetry, flip it | /* If the active area is being applied for symmetry, flip it | ||||
| * across the symmetry axis and rotate it back to the original | * across the symmetry axis and rotate it back to the original | ||||
| * position in order to project it. This insures that the | * position in order to project it. This insures that the | ||||
| * brush texture will be oriented correctly. */ | * brush texture will be oriented correctly. */ | ||||
| flip_v3_v3(symm_point, point, cache->mirror_symmetry_pass); | |||||
| if (cache->radial_symmetry_pass) { | if (cache->radial_symmetry_pass) { | ||||
| mul_m4_v3(cache->symm_rot_mat_inv, symm_point); | mul_m4_v3(cache->symm_rot_mat_inv, point); | ||||
| } | } | ||||
| flip_v3_v3(symm_point, point, cache->mirror_symmetry_pass); | |||||
| ED_view3d_project_float_v2_m4(cache->vc->region, symm_point, point_2d, cache->projection_mat); | ED_view3d_project_float_v2_m4(cache->vc->region, symm_point, point_2d, cache->projection_mat); | ||||
| /* Still no symmetry supported for other paint modes. | /* Still no symmetry supported for other paint modes. | ||||
| * Sculpt does it DIY. */ | * Sculpt does it DIY. */ | ||||
| if (mtex->brush_map_mode == MTEX_MAP_MODE_AREA) { | if (mtex->brush_map_mode == MTEX_MAP_MODE_AREA) { | ||||
| /* Similar to fixed mode, but projects from brush angle | /* Similar to fixed mode, but projects from brush angle | ||||
| * rather than view direction. */ | * rather than view direction. */ | ||||
| ▲ Show 20 Lines • Show All 7,267 Lines • Show Last 20 Lines | |||||