Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_scene_types.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h
index aada838fce5..e36ce7d9657 100644
--- a/source/blender/makesdna/DNA_scene_types.h
+++ b/source/blender/makesdna/DNA_scene_types.h
@@ -60,6 +60,7 @@ struct Editing;
struct SceneStats;
struct bGPdata;
struct MovieClip;
+struct ColorSpace;
/* ************************************************************* */
/* Scene Data */
@@ -932,7 +933,9 @@ typedef struct UnifiedPaintSettings {
float brush_rotation;
- // all this below is used to communicate with the cursor drawing routine
+ /*********************************************************************************
+ * all data below are used to communicate with cursor drawing and tex sampling *
+ *********************************************************************************/
int draw_anchored;
int anchored_size;
float anchored_initial_mouse[2];
@@ -949,9 +952,14 @@ typedef struct UnifiedPaintSettings {
/* position of mouse, used to sample the mask texture */
float mask_tex_mouse[2];
+ /* ColorSpace cache to avoid locking up during sampling */
+ int do_linear_conversion;
+ struct ColorSpace *colorspace;
+
/* radius of brush, premultiplied with pressure.
* In case of anchored brushes contains that radius */
float pixel_radius;
+ int pad2;
} UnifiedPaintSettings;
typedef enum {