diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2020-05-05 18:16:27 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2020-05-05 18:16:27 +0300 |
commit | 527c81c6f841c24c11c4d61fe2f36a0e6a01bbe0 (patch) | |
tree | 42872eca37b0e7bdcf157173a67b214cad42db25 /source/blender/editors/sculpt_paint/sculpt_undo.c | |
parent | 9535dbcee0bde24f11457d17d0f4cd5424711e86 (diff) | |
parent | e6fab27d6a3476a08cadb7ff4ecbd467a1c0db74 (diff) |
Merge branch 'blender-v2.83-release'
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt_undo.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_undo.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_undo.c b/source/blender/editors/sculpt_paint/sculpt_undo.c index 6c8b73723eb..3ad75462611 100644 --- a/source/blender/editors/sculpt_paint/sculpt_undo.c +++ b/source/blender/editors/sculpt_paint/sculpt_undo.c @@ -892,6 +892,17 @@ SculptUndoNode *SCULPT_undo_get_node(PBVHNode *node) return BLI_findptr(&usculpt->nodes, node, offsetof(SculptUndoNode, node)); } +SculptUndoNode *SCULPT_undo_get_first_node() +{ + UndoSculpt *usculpt = sculpt_undo_get_nodes(); + + if (usculpt == NULL) { + return NULL; + } + + return usculpt->nodes.first; +} + static void sculpt_undo_alloc_and_store_hidden(PBVH *pbvh, SculptUndoNode *unode) { PBVHNode *node = unode->node; |