Fix context texture buttons in cycles not getting their context right -

reported by gooseberry team.
This commit is contained in:
Antonis Ryakiotakis 2014-11-18 17:45:10 +01:00
parent ffbb950da9
commit 2b2ac5d3cc
1 changed files with 1 additions and 1 deletions

View File

@ -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);