Fix #116098: Change default texture mapping for brushes to View Plane

The Tiled default is the least commonly used mapping mode, switch the
default to something that is more commonly used.

Do it for all modes, since according to Julien it is reasonable default
behavior.

Pull Request: https://projects.blender.org/blender/blender/pulls/116933
This commit is contained in:
Sergey Sharybin
2024-01-24 09:48:27 +01:00
committed by Sergey Sharybin
parent 190567f941
commit aecf1fba84
2 changed files with 7 additions and 2 deletions

View File

@@ -817,12 +817,17 @@ void BLO_update_defaults_startup_blend(Main *bmain, const char *app_template)
}
{
/* Use the same tool icon color in the brush cursor */
LISTBASE_FOREACH (Brush *, brush, &bmain->brushes) {
/* Use the same tool icon color in the brush cursor */
if (brush->ob_mode & OB_MODE_SCULPT) {
BLI_assert(brush->sculpt_tool != 0);
BKE_brush_sculpt_reset(brush);
}
/* Set the default texture mapping.
* Do it for all brushes, since some of them might be coming from the startup file. */
brush->mtex.brush_map_mode = MTEX_MAP_MODE_VIEW;
brush->mask_mtex.brush_map_mode = MTEX_MAP_MODE_VIEW;
}
}
}

View File

@@ -53,7 +53,7 @@
.dampfac = 1.0f, \
.gravityfac = 1.0f, \
.fieldfac = 1.0f, \
.brush_map_mode = MTEX_MAP_MODE_TILED, \
.brush_map_mode = MTEX_MAP_MODE_VIEW, \
.random_angle = 2.0f * (float)M_PI, \
.brush_angle_mode = 0, \
} \