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:
authorNicholas Bishop <nicholasbishop@gmail.com>2006-12-30 03:51:26 +0300
committerNicholas Bishop <nicholasbishop@gmail.com>2006-12-30 03:51:26 +0300
commit04f9d7c60440310e66352d0b9143b878ef95c97a (patch)
treefa6fbcb80efc02b9938557ff8617c9295b19f2c9 /source/blender/src/editmode_undo.c
parent34286476a58f721c50d2aee54f687f69770b6919 (diff)
Hopefully fixed bug #5437, sculpt - seam selection flushing eats lots of ram on low multires level
This appears to have been caused by the excessive amount of memory that multires was eating up every time an edit operation pushed a new undo copy. Added a hack for multires that allows it to use the same multires data for multiple undo copies until the user actually changes levels (which is when multires data is actually updated.)
Diffstat (limited to 'source/blender/src/editmode_undo.c')
-rw-r--r--source/blender/src/editmode_undo.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/src/editmode_undo.c b/source/blender/src/editmode_undo.c
index 80b6d07e2f1..97ad4008f4d 100644
--- a/source/blender/src/editmode_undo.c
+++ b/source/blender/src/editmode_undo.c
@@ -340,4 +340,9 @@ uiBlock *editmode_undohistorymenu(void *arg_unused)
return block;
}
-
+void *undo_editmode_get_prev()
+{
+ UndoElem *ue= undobase.last;
+ if(ue && ue->prev) return ue->prev->undodata;
+ return NULL;
+}