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:
authorDiego Borghetti <bdiego@gmail.com>2007-08-27 07:20:16 +0400
committerDiego Borghetti <bdiego@gmail.com>2007-08-27 07:20:16 +0400
commit93b5553c9c04ee8cc5dde4c3530f5527e0848691 (patch)
treee980c2021afaf7438b1c762eea94c39eb0bff543 /source/blender/src/buttons_shading.c
parentba6f02fb293c8a4ef768004e603c5e2bc8d14a55 (diff)
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.
Diffstat (limited to 'source/blender/src/buttons_shading.c')
-rw-r--r--source/blender/src/buttons_shading.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/buttons_shading.c b/source/blender/src/buttons_shading.c
index 9309a07642a..1e1a9b1e01f 100644
--- a/source/blender/src/buttons_shading.c
+++ b/source/blender/src/buttons_shading.c
@@ -3596,7 +3596,7 @@ static uiBlock *strand_menu(void *mat_v)
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;
}