diff options
Diffstat (limited to 'source/blender/editors/render/render_shading.c')
-rw-r--r-- | source/blender/editors/render/render_shading.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/render/render_shading.c b/source/blender/editors/render/render_shading.c index 79ab300fa7f..b91bc793f85 100644 --- a/source/blender/editors/render/render_shading.c +++ b/source/blender/editors/render/render_shading.c @@ -450,7 +450,8 @@ static int new_texture_exec(bContext *C, wmOperator *UNUSED(op)) tex->id.us--; if (ptr.id.data && GS(((ID *)ptr.id.data)->name) == ID_MA && - RNA_property_pointer_get(&ptr, prop).id.data == NULL) { + RNA_property_pointer_get(&ptr, prop).id.data == NULL) + { /* In case we are assigning new texture to a material, and active slot was empty, reset 'use' flag. */ Material *ma = (Material *)ptr.id.data; ma->septex &= ~(1 << ma->texact); |