Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/paint_utils.c
| Show First 20 Lines • Show All 457 Lines • ▼ Show 20 Lines | void flip_qt_qt(float out[4], const float in[4], const char symm) | ||||
| axis_angle_normalized_to_quat(out, axis, angle); | axis_angle_normalized_to_quat(out, axis, angle); | ||||
| } | } | ||||
| /* used for both 3d view and image window */ | /* used for both 3d view and image window */ | ||||
| void paint_sample_color( | void paint_sample_color( | ||||
| bContext *C, ARegion *ar, int x, int y, bool texpaint_proj, bool use_palette) | bContext *C, ARegion *ar, int x, int y, bool texpaint_proj, bool use_palette) | ||||
| { | { | ||||
| Scene *scene = CTX_data_scene(C); | Scene *scene = CTX_data_scene(C); | ||||
| Depsgraph *depsgraph = CTX_data_depsgraph(C); | Depsgraph *depsgraph = CTX_data_ensure_evaluated_depsgraph(C); | ||||
| Paint *paint = BKE_paint_get_active_from_context(C); | Paint *paint = BKE_paint_get_active_from_context(C); | ||||
| Palette *palette = BKE_paint_palette(paint); | Palette *palette = BKE_paint_palette(paint); | ||||
| PaletteColor *color = NULL; | PaletteColor *color = NULL; | ||||
| Brush *br = BKE_paint_brush(BKE_paint_get_active_from_context(C)); | Brush *br = BKE_paint_brush(BKE_paint_get_active_from_context(C)); | ||||
| unsigned int col; | unsigned int col; | ||||
| const unsigned char *cp; | const unsigned char *cp; | ||||
| CLAMP(x, 0, ar->winx); | CLAMP(x, 0, ar->winx); | ||||
| ▲ Show 20 Lines • Show All 341 Lines • Show Last 20 Lines | |||||