|
Blender V4.5
|
#include <DNA_scene_types.h>
Public Attributes | |
| int | size |
| float | unprojected_radius |
| float | alpha |
| float | weight |
| float | rgb [3] |
| float | secondary_rgb [3] |
| int | color_jitter_flag |
| float | hsv_jitter [3] |
| struct CurveMapping * | curve_rand_hue |
| struct CurveMapping * | curve_rand_saturation |
| struct CurveMapping * | curve_rand_value |
| int | input_samples |
| int | flag |
| char | _pad [4] |
| float | last_rake [2] |
| float | last_rake_angle |
| int | last_stroke_valid |
| float | average_stroke_accum [3] |
| int | average_stroke_counter |
| float | brush_rotation |
| float | brush_rotation_sec |
| int | anchored_size |
| float | overlap_factor |
| char | draw_inverted |
| char | stroke_active |
| char | draw_anchored |
| char | do_linear_conversion |
| float | last_location [3] |
| int | last_hit |
| float | anchored_initial_mouse [2] |
| float | pixel_radius |
| float | initial_pixel_radius |
| float | start_pixel_radius |
| float | size_pressure_value |
| float | tex_mouse [2] |
| float | mask_tex_mouse [2] |
| const ColorSpaceHandle * | colorspace |
These settings can override the equivalent fields in the active Brush for any paint mode; the flag field controls whether these values are used
Definition at line 1461 of file DNA_scene_types.h.
| char UnifiedPaintSettings::_pad[4] |
Definition at line 1493 of file DNA_scene_types.h.
| float UnifiedPaintSettings::alpha |
Unified strength of brush.
Definition at line 1469 of file DNA_scene_types.h.
Referenced by BKE_brush_alpha_get(), BKE_brush_alpha_set(), and blo_do_versions_260().
| float UnifiedPaintSettings::anchored_initial_mouse[2] |
Definition at line 1536 of file DNA_scene_types.h.
Referenced by blender::ed::sculpt_paint::brush_delta_update(), blender::ed::sculpt_paint::paint_brush_update(), blender::ed::sculpt_paint::paint_cursor_update_anchored_location(), blender::ed::sculpt_paint::paint_draw_cursor_overlay(), blender::ed::sculpt_paint::paint_draw_tex_overlay(), and blender::ed::sculpt_paint::sculpt_update_cache_variants().
| int UnifiedPaintSettings::anchored_size |
Definition at line 1514 of file DNA_scene_types.h.
Referenced by blender::ed::sculpt_paint::brush_delta_update(), blender::ed::sculpt_paint::paint_brush_update(), blender::ed::sculpt_paint::paint_cursor_update_anchored_location(), blender::ed::sculpt_paint::paint_cursor_update_unprojected_radius(), blender::ed::sculpt_paint::paint_draw_cursor_overlay(), blender::ed::sculpt_paint::paint_draw_tex_overlay(), and blender::ed::sculpt_paint::sculpt_update_cache_variants().
| float UnifiedPaintSettings::average_stroke_accum[3] |
Definition at line 1502 of file DNA_scene_types.h.
Referenced by BKE_paint_init(), BKE_paint_stroke_get_average(), blender::ed::sculpt_paint::filter::cache_init(), blender::ed::sculpt_paint::face_set::change_visibility_exec(), blender::ed::sculpt_paint::do_brush_action(), blender::ed::sculpt_paint::ensure_valid_pivot(), blender::ed::sculpt_paint::vwpaint::last_stroke_update(), blender::ed::object::object_transfer_mode_reposition_view_pivot(), paint_init_pivot(), blender::ed::sculpt_paint::paint_stroke_new(), project_paint_op(), blender::ed::sculpt_paint::remember_stroke_position(), and blender::ed::sculpt_paint::set_pivot_position_exec().
| int UnifiedPaintSettings::average_stroke_counter |
Definition at line 1503 of file DNA_scene_types.h.
Referenced by BKE_paint_init(), BKE_paint_stroke_get_average(), blender::ed::sculpt_paint::filter::cache_init(), blender::ed::sculpt_paint::face_set::change_visibility_exec(), blender::ed::sculpt_paint::do_brush_action(), blender::ed::sculpt_paint::ensure_valid_pivot(), blender::ed::sculpt_paint::vwpaint::last_stroke_update(), blender::ed::object::object_transfer_mode_reposition_view_pivot(), paint_init_pivot(), blender::ed::sculpt_paint::paint_stroke_new(), project_paint_op(), blender::ed::sculpt_paint::remember_stroke_position(), and blender::ed::sculpt_paint::set_pivot_position_exec().
| float UnifiedPaintSettings::brush_rotation |
Definition at line 1508 of file DNA_scene_types.h.
Referenced by BKE_brush_sample_tex_3d(), brush_painter_2d_refresh_cache(), blender::ed::sculpt_paint::paint_brush_update(), paint_calculate_rake_rotation(), blender::ed::sculpt_paint::paint_draw_tex_overlay(), paint_update_brush_rake_rotation(), blender::ed::sculpt_paint::sculpt_update_cache_variants(), and blender::ed::sculpt_paint::stroke_done().
| float UnifiedPaintSettings::brush_rotation_sec |
Definition at line 1509 of file DNA_scene_types.h.
Referenced by BKE_brush_sample_masktex(), brush_painter_2d_refresh_cache(), blender::ed::sculpt_paint::paint_brush_update(), paint_calculate_rake_rotation(), blender::ed::sculpt_paint::paint_draw_tex_overlay(), paint_update_brush_rake_rotation(), and blender::ed::sculpt_paint::stroke_done().
| int UnifiedPaintSettings::color_jitter_flag |
Unified color jitter settings
Definition at line 1480 of file DNA_scene_types.h.
Referenced by BKE_brush_color_jitter_get_settings().
| const ColorSpaceHandle* UnifiedPaintSettings::colorspace |
ColorSpace cache to avoid locking up during sampling.
Definition at line 1556 of file DNA_scene_types.h.
Referenced by BKE_brush_sample_tex_3d(), and blender::ed::sculpt_paint::paint_stroke_new().
| struct CurveMapping* UnifiedPaintSettings::curve_rand_hue |
Color jitter pressure curves.
Definition at line 1484 of file DNA_scene_types.h.
Referenced by BKE_brush_color_jitter_get_settings(), BKE_toolsettings_copy(), BKE_toolsettings_free(), blo_update_defaults_scene(), do_init_default_jitter_curves_in_unified_paint_settings(), scene_blend_read_data(), scene_blend_write(), and scene_init_data().
| struct CurveMapping* UnifiedPaintSettings::curve_rand_saturation |
Definition at line 1485 of file DNA_scene_types.h.
Referenced by BKE_brush_color_jitter_get_settings(), BKE_toolsettings_copy(), BKE_toolsettings_free(), blo_update_defaults_scene(), do_init_default_jitter_curves_in_unified_paint_settings(), scene_blend_read_data(), scene_blend_write(), and scene_init_data().
| struct CurveMapping* UnifiedPaintSettings::curve_rand_value |
Definition at line 1486 of file DNA_scene_types.h.
Referenced by BKE_brush_color_jitter_get_settings(), BKE_toolsettings_copy(), BKE_toolsettings_free(), blo_update_defaults_scene(), do_init_default_jitter_curves_in_unified_paint_settings(), scene_blend_read_data(), scene_blend_write(), and scene_init_data().
| char UnifiedPaintSettings::do_linear_conversion |
Definition at line 1527 of file DNA_scene_types.h.
Referenced by BKE_brush_sample_tex_3d(), and blender::ed::sculpt_paint::paint_stroke_new().
| char UnifiedPaintSettings::draw_anchored |
Definition at line 1526 of file DNA_scene_types.h.
Referenced by blender::ed::sculpt_paint::brush_delta_update(), blender::ed::sculpt_paint::paint_brush_update(), blender::ed::sculpt_paint::paint_cursor_update_anchored_location(), blender::ed::sculpt_paint::paint_cursor_update_unprojected_radius(), blender::ed::sculpt_paint::paint_draw_cursor_overlay(), blender::ed::sculpt_paint::paint_draw_tex_overlay(), blender::ed::sculpt_paint::paint_stroke_free(), and blender::ed::sculpt_paint::sculpt_update_cache_variants().
| char UnifiedPaintSettings::draw_inverted |
| int UnifiedPaintSettings::flag |
User preferences for sculpt and paint.
Definition at line 1492 of file DNA_scene_types.h.
Referenced by BKE_brush_alpha_get(), BKE_brush_alpha_set(), BKE_brush_color_jitter_get_settings(), BKE_brush_input_samples_get(), BKE_brush_input_samples_set(), BKE_brush_size_get(), BKE_brush_size_set(), BKE_brush_unprojected_radius_get(), BKE_brush_unprojected_radius_set(), BKE_brush_use_locked_size(), BKE_brush_weight_get(), BKE_brush_weight_set(), BKE_paint_use_unified_color(), blo_do_versions_260(), blo_do_versions_280(), blo_update_defaults_scene(), and pe_brush_size_get().
| float UnifiedPaintSettings::hsv_jitter[3] |
Definition at line 1481 of file DNA_scene_types.h.
Referenced by BKE_brush_color_jitter_get_settings().
| float UnifiedPaintSettings::initial_pixel_radius |
Definition at line 1543 of file DNA_scene_types.h.
Referenced by blender::ed::sculpt_paint::paint_brush_update(), and blender::ed::sculpt_paint::sculpt_update_cache_variants().
| int UnifiedPaintSettings::input_samples |
Unified brush stroke input samples.
Definition at line 1489 of file DNA_scene_types.h.
Referenced by BKE_brush_input_samples_get(), BKE_brush_input_samples_set(), blo_do_versions_410(), and blo_update_defaults_scene().
| int UnifiedPaintSettings::last_hit |
Definition at line 1534 of file DNA_scene_types.h.
Referenced by blender::ed::sculpt_paint::paint_brush_stroke_add_step(), blender::ed::sculpt_paint::paint_cursor_sculpt_session_update_and_init(), and scene_blend_read_data().
| float UnifiedPaintSettings::last_location[3] |
Store last location of stroke or whether the mesh was hit. Valid only while stroke is active.
Definition at line 1533 of file DNA_scene_types.h.
Referenced by blender::ed::sculpt_paint::paint_brush_stroke_add_step(), blender::ed::sculpt_paint::paint_cursor_sculpt_session_update_and_init(), and scene_blend_read_data().
| float UnifiedPaintSettings::last_rake[2] |
Record movement of mouse so that rake can start at an intuitive angle.
Definition at line 1498 of file DNA_scene_types.h.
Referenced by blender::ed::sculpt_paint::paint_brush_update(), paint_calculate_rake_rotation(), and blender::ed::sculpt_paint::paint_stroke_modal().
| float UnifiedPaintSettings::last_rake_angle |
Definition at line 1499 of file DNA_scene_types.h.
Referenced by paint_calculate_rake_rotation().
| int UnifiedPaintSettings::last_stroke_valid |
Definition at line 1501 of file DNA_scene_types.h.
Referenced by BKE_paint_init(), BKE_paint_stroke_get_average(), blender::ed::sculpt_paint::filter::cache_init(), blender::ed::sculpt_paint::face_set::change_visibility_exec(), blender::ed::sculpt_paint::do_brush_action(), blender::ed::sculpt_paint::ensure_valid_pivot(), blender::ed::sculpt_paint::vwpaint::last_stroke_update(), blender::ed::object::object_transfer_mode_reposition_view_pivot(), paint_init_pivot(), project_paint_op(), blender::ed::sculpt_paint::remember_stroke_position(), and blender::ed::sculpt_paint::set_pivot_position_exec().
| float UnifiedPaintSettings::mask_tex_mouse[2] |
Position of mouse, used to sample the mask texture.
Definition at line 1553 of file DNA_scene_types.h.
Referenced by BKE_brush_randomize_texture_coords(), BKE_brush_sample_masktex(), and blender::ed::sculpt_paint::paint_brush_update().
| float UnifiedPaintSettings::overlap_factor |
Normalization factor due to accumulated value of curve along spacing. Calculated when brush spacing changes to dampen strength of stroke if space attenuation is used.
Definition at line 1521 of file DNA_scene_types.h.
Referenced by brush_strength(), blender::ed::sculpt_paint::paint_line_strokes_spacing(), blender::ed::sculpt_paint::paint_space_stroke(), blender::ed::sculpt_paint::paint_stroke_curve_end(), blender::ed::sculpt_paint::paint_stroke_line_end(), blender::ed::sculpt_paint::paint_stroke_modal(), blender::ed::sculpt_paint::paint_stroke_new(), and blender::ed::sculpt_paint::image::ops::paint::paint_stroke_update_step().
| float UnifiedPaintSettings::pixel_radius |
Radius of brush, pre-multiplied with pressure. In case of anchored brushes contains the anchored radius.
Definition at line 1542 of file DNA_scene_types.h.
Referenced by BKE_brush_randomize_texture_coords(), BKE_brush_sample_masktex(), BKE_brush_sample_tex_3d(), blender::ed::sculpt_paint::brush_delta_update(), blender::ed::sculpt_paint::paint_brush_stroke_add_step(), blender::ed::sculpt_paint::paint_brush_update(), and blender::ed::sculpt_paint::sculpt_update_cache_variants().
| float UnifiedPaintSettings::rgb[3] |
Unified brush color.
Definition at line 1475 of file DNA_scene_types.h.
Referenced by BKE_brush_color_get(), BKE_brush_color_set(), blo_update_defaults_scene(), and brush_colors_flip_exec().
| float UnifiedPaintSettings::secondary_rgb[3] |
Unified brush secondary color.
Definition at line 1477 of file DNA_scene_types.h.
Referenced by BKE_brush_secondary_color_get(), blo_update_defaults_scene(), and brush_colors_flip_exec().
| int UnifiedPaintSettings::size |
Unified radius of brush in pixels.
Definition at line 1463 of file DNA_scene_types.h.
Referenced by BKE_brush_size_get(), BKE_brush_size_set(), blo_do_versions_260(), blender::ed::sculpt_paint::filter::cache_init(), pe_brush_size_get(), and scene_blend_read_data().
| float UnifiedPaintSettings::size_pressure_value |
Drawing pressure.
Definition at line 1547 of file DNA_scene_types.h.
Referenced by BKE_brush_sample_masktex(), blender::ed::sculpt_paint::paint_brush_update(), blender::ed::sculpt_paint::paint_cursor_update_unprojected_radius(), blender::ed::sculpt_paint::paint_draw_2D_view_brush_cursor_default(), blender::ed::sculpt_paint::paint_draw_cursor_overlay(), and blender::ed::sculpt_paint::paint_draw_tex_overlay().
| float UnifiedPaintSettings::start_pixel_radius |
Definition at line 1544 of file DNA_scene_types.h.
Referenced by BKE_brush_sample_masktex(), BKE_brush_sample_tex_3d(), and blender::ed::sculpt_paint::paint_stroke_new().
| char UnifiedPaintSettings::stroke_active |
Check is there an ongoing stroke right now.
Definition at line 1524 of file DNA_scene_types.h.
Referenced by blender::ed::sculpt_paint::paint_brush_update(), blender::ed::sculpt_paint::paint_cursor_context_init(), blender::ed::sculpt_paint::paint_cursor_sculpt_session_update_and_init(), blender::ed::sculpt_paint::paint_cursor_update_rake_rotation(), blender::ed::sculpt_paint::paint_cursor_update_unprojected_radius(), blender::ed::sculpt_paint::paint_draw_2D_view_brush_cursor_default(), blender::ed::sculpt_paint::paint_draw_cursor_overlay(), blender::ed::sculpt_paint::paint_draw_tex_overlay(), blender::ed::sculpt_paint::paint_stroke_free(), and blender::ed::sculpt_paint::paint_stroke_new().
| float UnifiedPaintSettings::tex_mouse[2] |
Position of mouse, used to sample the texture.
Definition at line 1550 of file DNA_scene_types.h.
Referenced by BKE_brush_randomize_texture_coords(), BKE_brush_sample_tex_3d(), blender::ed::sculpt_paint::paint_brush_update(), and blender::ed::sculpt_paint::sculpt_update_cache_invariants().
| float UnifiedPaintSettings::unprojected_radius |
Unified radius of brush in Blender units.
Definition at line 1466 of file DNA_scene_types.h.
Referenced by BKE_brush_unprojected_radius_get(), BKE_brush_unprojected_radius_set(), blo_do_versions_260(), and scene_blend_read_data().
| float UnifiedPaintSettings::weight |
Unified brush weight, [0, 1].
Definition at line 1472 of file DNA_scene_types.h.
Referenced by BKE_brush_weight_get(), BKE_brush_weight_set(), and blo_do_versions_260().