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>2020-03-15 13:48:35 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-03-15 13:48:35 +0300
commit4be4c06671551da62edf197df6e7ad8c89dc2fe0 (patch)
tree17592201ff98be5c4d6fbd69b9f8c102a168365e /source/blender/bmesh
parent80edc0e972a2dde85509968832ce21f46d86ce58 (diff)
Cleanup: redundant checks
In some cases moved the checks into asserts, to ensure changes in the future don't cause the checks to become necessary again.
Diffstat (limited to 'source/blender/bmesh')
-rw-r--r--source/blender/bmesh/intern/bmesh_log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/bmesh/intern/bmesh_log.c b/source/blender/bmesh/intern/bmesh_log.c
index d14b7a51a94..b4e78453226 100644
--- a/source/blender/bmesh/intern/bmesh_log.c
+++ b/source/blender/bmesh/intern/bmesh_log.c
@@ -788,7 +788,7 @@ void BM_log_redo(BMesh *bm, BMLog *log)
/* Currently at the beginning of the undo stack, move to first entry */
entry = log->entries.first;
}
- else if (entry && entry->next) {
+ else if (entry->next) {
/* Move to next undo entry */
entry = entry->next;
}