diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-12-23 18:26:21 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-01-11 18:00:23 +0300 |
commit | b98e6743dcaf8ec513bbbadc0015cb8729a72a18 (patch) | |
tree | 6eca66c816ff25cbe91b31a7a370ed0efcef723c /source/blender/makesdna/DNA_scene_types.h | |
parent | 9177bb33f68f66609b29e1e53a90552cae8026b3 (diff) |
Texture Paint: Add filtering option for texture paint overlay
The overlay should now use the texture interpolation setting in material
mode.
In image mode, there is now a new button to let the user choose the texture
filter. The option is located in the Texture Slots popover and only shows
in Image mode.
Diffstat (limited to 'source/blender/makesdna/DNA_scene_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_scene_types.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h index a1e2afaf055..3186e8a435b 100644 --- a/source/blender/makesdna/DNA_scene_types.h +++ b/source/blender/makesdna/DNA_scene_types.h @@ -923,6 +923,9 @@ typedef struct ImagePaintSettings { float stencil_col[3]; /** Dither amount used when painting on byte images. */ float dither; + /** Display texture interpolation method. */ + int interp; + int pad; } ImagePaintSettings; /* ------------------------------------------- */ @@ -2207,6 +2210,12 @@ typedef enum eImagePaintMode { IMAGEPAINT_MODE_IMAGE, /* select texture paint image directly */ } eImagePaintMode; +/* ImagePaintSettings.interp */ +enum { + IMAGEPAINT_INTERP_LINEAR = 0, + IMAGEPAINT_INTERP_CLOSEST, +}; + /* ImagePaintSettings.flag */ #define IMAGEPAINT_DRAWING (1 << 0) // #define IMAGEPAINT_DRAW_TOOL (1 << 1) // deprecated |