[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11839] trunk/blender/source/blender/src/ buttons_shading.c: BugFix #7115

Diego Borghetti (Plumiferos) bdiego at gmail.com
Mon Aug 27 05:20:17 CEST 2007


Revision: 11839
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11839
Author:   bdiego
Date:     2007-08-27 05:20:16 +0200 (Mon, 27 Aug 2007)

Log Message:
-----------
BugFix #7115

The "Strands" settings is a BlockBut and never return B_MATPRV like the others buttons, because of this,
never call BIF_preview_changed.

It's posible two fix for this:
	1) make all the buttons into the "Strands" panel return B_MATPRV (this modify the "work mode" of the panel)
	2) Add a call to BIF_preview_changed to the end of strands_menu function (as do_matbuts).

The problem with the first options, is that the panel "close" when you press/release some of the buttons, so
to preserve the current "work mode" of the panel, i choose the second option.

Modified Paths:
--------------
    trunk/blender/source/blender/src/buttons_shading.c

Modified: trunk/blender/source/blender/src/buttons_shading.c
===================================================================
--- trunk/blender/source/blender/src/buttons_shading.c	2007-08-27 01:43:09 UTC (rev 11838)
+++ trunk/blender/source/blender/src/buttons_shading.c	2007-08-27 03:20:16 UTC (rev 11839)
@@ -3596,7 +3596,7 @@
 	uiDefButF(block, NUMSLI, 0, "Shape ",	10, 10, 230,20,  &ma->strand_ease, -0.9, 0.9, 2, 0, "Shape of strands, positive value makes it rounder, negative makes it spiky");
 
 	uiBlockSetDirection(block, UI_TOP);
-	
+	BIF_preview_changed(ID_MA);
 	return block;
 }
 





More information about the Bf-blender-cvs mailing list