Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/brush.c
| Show First 20 Lines • Show All 1,551 Lines • ▼ Show 20 Lines | void BKE_brush_gpencil_weight_presets(Main *bmain, ToolSettings *ts, const bool reset) | ||||
| } | } | ||||
| } | } | ||||
| void BKE_brush_init_curves_sculpt_settings(Brush *brush) | void BKE_brush_init_curves_sculpt_settings(Brush *brush) | ||||
| { | { | ||||
| if (brush->curves_sculpt_settings == NULL) { | if (brush->curves_sculpt_settings == NULL) { | ||||
| brush->curves_sculpt_settings = MEM_callocN(sizeof(BrushCurvesSculptSettings), __func__); | brush->curves_sculpt_settings = MEM_callocN(sizeof(BrushCurvesSculptSettings), __func__); | ||||
| } | } | ||||
| brush->curves_sculpt_settings->add_amount = 1; | BrushCurvesSculptSettings *settings = brush->curves_sculpt_settings; | ||||
| brush->curves_sculpt_settings->minimum_length = 0.01f; | settings->add_amount = 1; | ||||
| settings->minimum_length = 0.01f; | |||||
| settings->curve_length = 0.3f; | |||||
| } | } | ||||
| struct Brush *BKE_brush_first_search(struct Main *bmain, const eObjectMode ob_mode) | struct Brush *BKE_brush_first_search(struct Main *bmain, const eObjectMode ob_mode) | ||||
| { | { | ||||
| Brush *brush; | Brush *brush; | ||||
| for (brush = bmain->brushes.first; brush; brush = brush->id.next) { | for (brush = bmain->brushes.first; brush; brush = brush->id.next) { | ||||
| if (brush->ob_mode & ob_mode) { | if (brush->ob_mode & ob_mode) { | ||||
| ▲ Show 20 Lines • Show All 968 Lines • Show Last 20 Lines | |||||