Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/brush.c
| Show First 20 Lines • Show All 404 Lines • ▼ Show 20 Lines | IDTypeInfo IDType_ID_BR = { | ||||
| .foreach_cache = NULL, | .foreach_cache = NULL, | ||||
| .blend_write = brush_blend_write, | .blend_write = brush_blend_write, | ||||
| .blend_read_data = brush_blend_read_data, | .blend_read_data = brush_blend_read_data, | ||||
| .blend_read_lib = brush_blend_read_lib, | .blend_read_lib = brush_blend_read_lib, | ||||
| .blend_read_expand = brush_blend_read_expand, | .blend_read_expand = brush_blend_read_expand, | ||||
| .blend_read_undo_preserve = brush_undo_preserve, | .blend_read_undo_preserve = brush_undo_preserve, | ||||
| .lib_override_apply_post = NULL, | |||||
| }; | }; | ||||
| static RNG *brush_rng; | static RNG *brush_rng; | ||||
| void BKE_brush_system_init(void) | void BKE_brush_system_init(void) | ||||
| { | { | ||||
| brush_rng = BLI_rng_new(0); | brush_rng = BLI_rng_new(0); | ||||
| BLI_rng_srandom(brush_rng, 31415682); | BLI_rng_srandom(brush_rng, 31415682); | ||||
| ▲ Show 20 Lines • Show All 552 Lines • ▼ Show 20 Lines | case GP_BRUSH_PRESET_PENCIL: { | ||||
| break; | break; | ||||
| } | } | ||||
| case GP_BRUSH_PRESET_FILL_AREA: { | case GP_BRUSH_PRESET_FILL_AREA: { | ||||
| brush->size = 20.0f; | brush->size = 20.0f; | ||||
| brush->gpencil_settings->fill_leak = 3; | brush->gpencil_settings->fill_leak = 3; | ||||
| brush->gpencil_settings->fill_threshold = 0.1f; | brush->gpencil_settings->fill_threshold = 0.1f; | ||||
| brush->gpencil_settings->fill_simplylvl = 1; | brush->gpencil_settings->fill_simplylvl = 1; | ||||
| brush->gpencil_settings->fill_factor = 1; | brush->gpencil_settings->fill_factor = 1.0f; | ||||
| brush->gpencil_settings->draw_strength = 1.0f; | brush->gpencil_settings->draw_strength = 1.0f; | ||||
| brush->gpencil_settings->hardeness = 1.0f; | brush->gpencil_settings->hardeness = 1.0f; | ||||
| copy_v2_fl(brush->gpencil_settings->aspect_ratio, 1.0f); | copy_v2_fl(brush->gpencil_settings->aspect_ratio, 1.0f); | ||||
| brush->gpencil_settings->draw_smoothfac = 0.1f; | brush->gpencil_settings->draw_smoothfac = 0.1f; | ||||
| brush->gpencil_settings->draw_smoothlvl = 1; | brush->gpencil_settings->draw_smoothlvl = 1; | ||||
| brush->gpencil_settings->draw_subdivide = 1; | brush->gpencil_settings->draw_subdivide = 1; | ||||
| ▲ Show 20 Lines • Show All 1,550 Lines • Show Last 20 Lines | |||||