diff options
author | Ton Roosendaal <ton@blender.org> | 2011-01-12 21:00:23 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2011-01-12 21:00:23 +0300 |
commit | 604d029ddf164e87eb453d83c59e65c2f16f8879 (patch) | |
tree | c981354dab170549f1fb729e51e068f0cb0a8ecc /source/blender/editors/space_view3d/view3d_toolbar.c | |
parent | 505e2d882af792480764791c070c19849477f774 (diff) |
Bugfix #25570
The tool-redo depends on a working undo system, so it can rewind
a step and then redo operator with new settings. When a user
disables undo, this won't work.
Now the properties for redo operator (toolbar, F6) will grey out
when a redo isn't possible.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_toolbar.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_toolbar.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/view3d_toolbar.c b/source/blender/editors/space_view3d/view3d_toolbar.c index 730cc553ff3..33ba1dbb7f9 100644 --- a/source/blender/editors/space_view3d/view3d_toolbar.c +++ b/source/blender/editors/space_view3d/view3d_toolbar.c @@ -114,6 +114,9 @@ static void view3d_panel_operator_redo(const bContext *C, Panel *pa) return; block= uiLayoutGetBlock(pa->layout); + + if(ED_undo_valid(C, op->type->name)==0) + uiLayoutSetEnabled(pa->layout, 0); uiBlockSetFunc(block, ED_undo_operator_repeat_cb, op, NULL); |