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:
authorAntony Riakiotakis <kalast@gmail.com>2014-11-18 19:45:10 +0300
committerAntony Riakiotakis <kalast@gmail.com>2014-11-18 19:45:34 +0300
commit2b2ac5d3cc1fa1a9ccf0a3aadf9e3abc3280d29b (patch)
tree96a6e2d4301cae355527dd2ea8859b31b1d71793 /source/blender/editors/space_buttons
parentffbb950da9d6d64297ebb0ae56500b67dec97190 (diff)
Fix context texture buttons in cycles not getting their context right -
reported by gooseberry team.
Diffstat (limited to 'source/blender/editors/space_buttons')
-rw-r--r--source/blender/editors/space_buttons/buttons_texture.c2
1 files changed, 1 insertions, 1 deletions
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);