From 2b2ac5d3cc1fa1a9ccf0a3aadf9e3abc3280d29b Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Tue, 18 Nov 2014 17:45:10 +0100 Subject: [PATCH] Fix context texture buttons in cycles not getting their context right - reported by gooseberry team. --- source/blender/editors/space_buttons/buttons_texture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/space_buttons/buttons_texture.c b/source/blender/editors/space_buttons/buttons_texture.c index 3b939702c58..095993addf5 100644 --- a/source/blender/editors/space_buttons/buttons_texture.c +++ b/source/blender/editors/space_buttons/buttons_texture.c @@ -468,7 +468,7 @@ void buttons_texture_context_compute(const bContext *C, SpaceButs *sbuts) } else { /* set one user as active based on active index */ - if (ct->index == BLI_listbase_count_ex(&ct->users, ct->index)) + if (ct->index == BLI_listbase_count_ex(&ct->users, ct->index + 1)) ct->index = 0; ct->user = BLI_findlink(&ct->users, ct->index);