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:
authorTon Roosendaal <ton@blender.org>2011-03-12 18:09:29 +0300
committerTon Roosendaal <ton@blender.org>2011-03-12 18:09:29 +0300
commitf6b21ecf840627f384c84e1a869ca54698792a87 (patch)
tree8a1bbcf48e19d6aa690dc98d5982ed513005d057 /source/blender/editors/space_image
parenta41694938231a108ed414561311663c3c4ae7c4c (diff)
More on bug #26432
More undo-push disabling for switching render slots. Also added 'undo push' print in debug mode (blender -d)
Diffstat (limited to 'source/blender/editors/space_image')
-rw-r--r--source/blender/editors/space_image/image_ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_image/image_ops.c b/source/blender/editors/space_image/image_ops.c
index 3990f0916b1..93e5465cd64 100644
--- a/source/blender/editors/space_image/image_ops.c
+++ b/source/blender/editors/space_image/image_ops.c
@@ -2134,7 +2134,7 @@ static int cycle_render_slot_exec(bContext *C, wmOperator *op)
WM_event_add_notifier(C, NC_IMAGE|ND_DRAW, NULL);
/* no undo push for browsing existing */
- if(ima->renders[ima->render_slot])
+ if(ima->renders[ima->render_slot] || ima->render_slot==ima->last_render_slot)
return OPERATOR_CANCELLED;
return OPERATOR_FINISHED;