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>2015-04-18 16:41:12 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-04-18 19:25:07 +0300
commit252b0cf5d28c5ce6397a64cb4bb399a6c5a438fa (patch)
tree17892fee417a6e2d9efc78eccdb3d8aec7170e64 /source/blender/windowmanager/intern/wm_files.c
parent38bea4e86c90c514d345f34f865da831e6d2f83f (diff)
Cleanup: API naming use BKE_undo_ prefix
Diffstat (limited to 'source/blender/windowmanager/intern/wm_files.c')
-rw-r--r--source/blender/windowmanager/intern/wm_files.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index e80f789d3ab..df0d27bc43e 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -506,13 +506,13 @@ bool WM_file_read(bContext *C, const char *filepath, ReportList *reports)
}
#endif
- BKE_reset_undo();
- BKE_write_undo(C, "original"); /* save current state */
+ BKE_undo_reset();
+ BKE_undo_write(C, "original"); /* save current state */
success = true;
}
else if (retval == BKE_READ_EXOTIC_OK_OTHER)
- BKE_write_undo(C, "Import file");
+ BKE_undo_write(C, "Import file");
else if (retval == BKE_READ_EXOTIC_FAIL_OPEN) {
BKE_reportf(reports, RPT_ERROR, "Cannot read file '%s': %s", filepath,
errno ? strerror(errno) : TIP_("unable to open the file"));
@@ -660,8 +660,8 @@ int wm_homefile_read(bContext *C, ReportList *reports, bool from_memory, const c
// refresh_interface_font();
// undo_editmode_clear();
- BKE_reset_undo();
- BKE_write_undo(C, "original"); /* save current state */
+ BKE_undo_reset();
+ BKE_undo_write(C, "original"); /* save current state */
ED_editors_init(C);
DAG_on_visible_update(CTX_data_main(C), true);