[Bf-blender-cvs] [b51d836fcc3] master: Cleanup: balance braces, spelling
Campbell Barton
noreply at git.blender.org
Mon Sep 21 07:06:18 CEST 2020
Commit: b51d836fcc31eadaef34e469c68c1c99e8417958
Author: Campbell Barton
Date: Mon Sep 21 14:59:31 2020 +1000
Branches: master
https://developer.blender.org/rBb51d836fcc31eadaef34e469c68c1c99e8417958
Cleanup: balance braces, spelling
Keep braces balanced where possible, even with ifdef's as it avoids
confusions with editors calculating correct indentation level &
finding matching brackets.
===================================================================
M source/blender/blenloader/intern/undofile.c
M source/blender/makesdna/DNA_ID.h
===================================================================
diff --git a/source/blender/blenloader/intern/undofile.c b/source/blender/blenloader/intern/undofile.c
index 92aec13ecf1..d1f69d35fe5 100644
--- a/source/blender/blenloader/intern/undofile.c
+++ b/source/blender/blenloader/intern/undofile.c
@@ -253,10 +253,11 @@ bool BLO_memfile_write_file(struct MemFile *memfile, const char *filename)
for (chunk = memfile->chunks.first; chunk; chunk = chunk->next) {
#ifdef _WIN32
- if ((size_t)write(file, chunk->buf, (uint)chunk->size) != chunk->size) {
+ if ((size_t)write(file, chunk->buf, (uint)chunk->size) != chunk->size)
#else
- if ((size_t)write(file, chunk->buf, chunk->size) != chunk->size) {
+ if ((size_t)write(file, chunk->buf, chunk->size) != chunk->size)
#endif
+ {
break;
}
}
diff --git a/source/blender/makesdna/DNA_ID.h b/source/blender/makesdna/DNA_ID.h
index ea1e1d7ee0e..23a8927a0e0 100644
--- a/source/blender/makesdna/DNA_ID.h
+++ b/source/blender/makesdna/DNA_ID.h
@@ -132,7 +132,7 @@ enum {
/** This collection item IDProp has been inserted in a local override.
* This is used by internal code to distinguish between library-originated items and
- * local-insterted ones, as many operations are not allowed on the former. */
+ * local-inserted ones, as many operations are not allowed on the former. */
IDP_FLAG_OVERRIDELIBRARY_LOCAL = 1 << 1,
/** This means the property is set but RNA will return false when checking
More information about the Bf-blender-cvs
mailing list