Fix context texture buttons in cycles not getting their context right -
reported by gooseberry team.
This commit is contained in:
parent
ffbb950da9
commit
2b2ac5d3cc
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue