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/blenkernel/intern/material.c | |
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/blenkernel/intern/material.c')
-rw-r--r-- | source/blender/blenkernel/intern/material.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/material.c b/source/blender/blenkernel/intern/material.c index 7e59d31571b..913bc9c47e6 100644 --- a/source/blender/blenkernel/intern/material.c +++ b/source/blender/blenkernel/intern/material.c @@ -1063,7 +1063,9 @@ static void fill_texpaint_slots_recursive(bNodeTree *nodetree, bNode *active_nod if (active_node == node) { ma->paint_active_slot = *index; } + ma->texpaintslot[*index].ima = (Image *)node->id; + ma->texpaintslot[*index].interp = ((NodeTexImage *)node->storage)->interpolation; /* for new renderer, we need to traverse the treeback in search of a UV node */ bNode *uvnode = nodetree_uv_node_recursive(node); |