From 0f84375d7afeccdaeb7a84af16aa46b1a521286f Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Sun, 7 Nov 2004 16:49:46 +0000 Subject: Lotsa undo stuff added; - ALT+U undo menu shows history for global undo as well - Added undo pushes for buttons window more consistantly - Added it & tested for ipowindow too - Added it in outliner - And quite some missing occasions for 3d window editing --- source/blender/src/outliner.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'source/blender/src/outliner.c') diff --git a/source/blender/src/outliner.c b/source/blender/src/outliner.c index 4ced1f07b08..1ecaf46bf05 100644 --- a/source/blender/src/outliner.c +++ b/source/blender/src/outliner.c @@ -781,6 +781,7 @@ void outliner_toggle_visible(struct ScrArea *sa) else outliner_set_flag(soops, &soops->tree, TSE_CLOSED, 1); + BIF_undo_push("Outliner toggle visible"); scrarea_queue_redraw(sa); } @@ -793,6 +794,7 @@ void outliner_toggle_selected(struct ScrArea *sa) else outliner_set_flag(soops, &soops->tree, TSE_SELECTED, 1); + BIF_undo_push("Outliner toggle selected"); scrarea_queue_redraw(sa); } @@ -830,6 +832,7 @@ void outliner_one_level(struct ScrArea *sa, int add) if(level) outliner_openclose_level(soops, &soops->tree, 1, level-1, 0); } + BIF_undo_push("Outliner show/hide one level"); scrarea_queue_redraw(sa); } @@ -1370,6 +1373,7 @@ void outliner_mouse_event(ScrArea *sa, short event) } if(te) { + BIF_undo_push("Outliner click event"); allqueue(REDRAWOOPS, 0); } @@ -1457,6 +1461,8 @@ void outliner_show_hierarchy(struct ScrArea *sa) tree_element_show_hierarchy(so, &so->tree); scrarea_queue_redraw(sa); + + BIF_undo_push("Outliner show hierarchy"); } static void do_outliner_select(SpaceOops *soops, ListBase *lb, float y1, float y2, short *selecting) @@ -1508,7 +1514,8 @@ void outliner_select(struct ScrArea *sa ) y1= y2; } } - + BIF_undo_push("Outliner selection"); + } /* ************ SELECTION OPERATIONS ********* */ @@ -1753,11 +1760,13 @@ void outliner_operation_menu(ScrArea *sa) switch(idlevel) { case ID_MA: outliner_do_libdata_operation(soops, &soops->tree, unlink_material_cb); + BIF_undo_push("Unlink material"); allqueue(REDRAWBUTSSHADING, 1); break; case ID_TE: outliner_do_libdata_operation(soops, &soops->tree, unlink_texture_cb); allqueue(REDRAWBUTSSHADING, 1); + BIF_undo_push("Unlink texture"); break; default: error("Not yet..."); -- cgit v1.2.3