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:
committed by
Sergey Sharybin
parent
190567f941
commit
aecf1fba84
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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, \
|
||||
} \
|
||||
|
||||
Reference in New Issue
Block a user