|
Blender V4.3
|
#include <DNA_scene_types.h>
Public Attributes | |
| int | size |
| float | unprojected_radius |
| float | alpha |
| float | weight |
| float | rgb [3] |
| float | secondary_rgb [3] |
| 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] |
| struct ColorSpace * | 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 1352 of file DNA_scene_types.h.
| char UnifiedPaintSettings::_pad[4] |
Definition at line 1375 of file DNA_scene_types.h.
| float UnifiedPaintSettings::alpha |
Unified strength of brush.
Definition at line 1360 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 1418 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 1396 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 1384 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(), and blender::ed::sculpt_paint::set_pivot_position_exec().
| int UnifiedPaintSettings::average_stroke_counter |
Definition at line 1385 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(), and blender::ed::sculpt_paint::set_pivot_position_exec().
| float UnifiedPaintSettings::brush_rotation |
Definition at line 1390 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 1391 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().
| struct ColorSpace* UnifiedPaintSettings::colorspace |
ColorSpace cache to avoid locking up during sampling.
Definition at line 1438 of file DNA_scene_types.h.
Referenced by BKE_brush_sample_tex_3d(), and blender::ed::sculpt_paint::paint_stroke_new().
| char UnifiedPaintSettings::do_linear_conversion |
Definition at line 1409 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 1408 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 1374 of file DNA_scene_types.h.
Referenced by BKE_brush_alpha_get(), BKE_brush_alpha_set(), 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_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::initial_pixel_radius |
Definition at line 1425 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 1371 of file DNA_scene_types.h.
Referenced by BKE_brush_input_samples_get(), BKE_brush_input_samples_set(), and blo_update_defaults_scene().
| int UnifiedPaintSettings::last_hit |
Definition at line 1416 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 1415 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 1380 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 1381 of file DNA_scene_types.h.
Referenced by paint_calculate_rake_rotation().
| int UnifiedPaintSettings::last_stroke_valid |
Definition at line 1383 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(), 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 1435 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 1403 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 1424 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 1366 of file DNA_scene_types.h.
Referenced by 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 1368 of file DNA_scene_types.h.
Referenced by blo_update_defaults_scene(), and brush_colors_flip_exec().
| int UnifiedPaintSettings::size |
Unified radius of brush in pixels.
Definition at line 1354 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(), and pe_brush_size_get().
| float UnifiedPaintSettings::size_pressure_value |
Drawing pressure.
Definition at line 1429 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 1426 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 1406 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 1432 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 1357 of file DNA_scene_types.h.
Referenced by BKE_brush_unprojected_radius_get(), BKE_brush_unprojected_radius_set(), and blo_do_versions_260().
| float UnifiedPaintSettings::weight |
Unified brush weight, [0, 1].
Definition at line 1363 of file DNA_scene_types.h.
Referenced by BKE_brush_weight_get(), BKE_brush_weight_set(), and blo_do_versions_260().