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:
authorCampbell Barton <ideasman42@gmail.com>2011-12-11 23:23:02 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-12-11 23:23:02 +0400
commitc280002879174e3f0fe5eb91501cfa0cc407358f (patch)
tree1211a97b48104077fb6ab0c96f571e4b4c84e292 /source/blender/editors/space_clip/clip_toolbar.c
parent4b66bd37485fe629d58cb66e582e21038ac99427 (diff)
fix [#29579] Redo brolken when jobs are running
changes * undo now checks screen jobs only, was checking all jobs before so a material preview could make an undo fail. now this is only limiteds for render/fluid bake/bake. * the redo UI is now disabled when screen operators run.
Diffstat (limited to 'source/blender/editors/space_clip/clip_toolbar.c')
-rw-r--r--source/blender/editors/space_clip/clip_toolbar.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_clip/clip_toolbar.c b/source/blender/editors/space_clip/clip_toolbar.c
index fe09c5cd829..941c12df4aa 100644
--- a/source/blender/editors/space_clip/clip_toolbar.c
+++ b/source/blender/editors/space_clip/clip_toolbar.c
@@ -212,6 +212,7 @@ static void clip_panel_operator_redo_operator(const bContext *C, Panel *pa, wmOp
}
}
+/* TODO de-duplicate redo panel functions - campbell */
static void clip_panel_operator_redo(const bContext *C, Panel *pa)
{
wmOperator *op= WM_operator_last_redo(C);
@@ -224,7 +225,7 @@ static void clip_panel_operator_redo(const bContext *C, Panel *pa)
block= uiLayoutGetBlock(pa->layout);
- if(ED_undo_valid(C, op->type->name)==0)
+ if (!WM_operator_check_ui_enabled(C, op->type->name))
uiLayoutSetEnabled(pa->layout, 0);
/* note, blockfunc is a default but->func, use Handle func to allow button callbacks too */