Blender V4.3
UnifiedPaintSettings Struct Reference

#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 ColorSpacecolorspace
 

Detailed Description

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.

Member Data Documentation

◆ _pad

char UnifiedPaintSettings::_pad[4]

Definition at line 1375 of file DNA_scene_types.h.

◆ alpha

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().

◆ anchored_initial_mouse

◆ anchored_size

◆ average_stroke_accum

◆ average_stroke_counter

◆ brush_rotation

◆ brush_rotation_sec

◆ colorspace

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().

◆ do_linear_conversion

char UnifiedPaintSettings::do_linear_conversion

◆ draw_anchored

◆ draw_inverted

◆ flag

◆ initial_pixel_radius

float UnifiedPaintSettings::initial_pixel_radius

◆ input_samples

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().

◆ last_hit

◆ last_location

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().

◆ last_rake

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().

◆ last_rake_angle

float UnifiedPaintSettings::last_rake_angle

Definition at line 1381 of file DNA_scene_types.h.

Referenced by paint_calculate_rake_rotation().

◆ last_stroke_valid

◆ mask_tex_mouse

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().

◆ overlap_factor

◆ pixel_radius

◆ rgb

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().

◆ secondary_rgb

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().

◆ size

int UnifiedPaintSettings::size

◆ size_pressure_value

◆ start_pixel_radius

float UnifiedPaintSettings::start_pixel_radius

◆ stroke_active

◆ tex_mouse

float UnifiedPaintSettings::tex_mouse[2]

◆ unprojected_radius

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().

◆ weight

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().


The documentation for this struct was generated from the following file: