[Bf-blender-cvs] [2b2ac5d] master: Fix context texture buttons in cycles not getting their context right - reported by gooseberry team.

Antony Riakiotakis noreply at git.blender.org
Tue Nov 18 17:45:47 CET 2014


Commit: 2b2ac5d3cc1fa1a9ccf0a3aadf9e3abc3280d29b
Author: Antony Riakiotakis
Date:   Tue Nov 18 17:45:10 2014 +0100
Branches: master
https://developer.blender.org/rB2b2ac5d3cc1fa1a9ccf0a3aadf9e3abc3280d29b

Fix context texture buttons in cycles not getting their context right -
reported by gooseberry team.

===================================================================

M	source/blender/editors/space_buttons/buttons_texture.c

===================================================================

diff --git a/source/blender/editors/space_buttons/buttons_texture.c b/source/blender/editors/space_buttons/buttons_texture.c
index 3b93970..095993a 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);




More information about the Bf-blender-cvs mailing list