diff options
author | Diego Borghetti <bdiego@gmail.com> | 2007-08-27 07:20:16 +0400 |
---|---|---|
committer | Diego Borghetti <bdiego@gmail.com> | 2007-08-27 07:20:16 +0400 |
commit | 93b5553c9c04ee8cc5dde4c3530f5527e0848691 (patch) | |
tree | e980c2021afaf7438b1c762eea94c39eb0bff543 /source/blender/src/buttons_shading.c | |
parent | ba6f02fb293c8a4ef768004e603c5e2bc8d14a55 (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.c | 2 |
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; } |