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>2018-12-08 07:01:47 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-12-08 07:01:47 +0300
commit1ddfd8c9ec1d61fa62dfe6adb37c4789476bc4e6 (patch)
tree3ddc03a5a1b81975fb69619faa415a461f9091eb /source/blender
parent0fe5a789837394d54c1a7570ef1e46c8ab3b0830 (diff)
Cleanup: style
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/blenlib/intern/system.c4
-rw-r--r--source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc2
-rw-r--r--source/blender/modifiers/intern/MOD_particleinstance.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenlib/intern/system.c b/source/blender/blenlib/intern/system.c
index 5ff1d4ed710..c1a7846c4b1 100644
--- a/source/blender/blenlib/intern/system.c
+++ b/source/blender/blenlib/intern/system.c
@@ -181,14 +181,14 @@ char *BLI_cpu_brand_string(void)
void BLI_hostname_get(char *buffer, size_t bufsize)
{
#ifndef WIN32
- if (gethostname(buffer, bufsize-1) < 0) {
+ if (gethostname(buffer, bufsize - 1) < 0) {
BLI_strncpy(buffer, "-unknown-", bufsize);
}
/* When gethostname() truncates, it doesn't guarantee the trailing \0. */
buffer[bufsize - 1] = '\0';
#else
DWORD bufsize_inout = bufsize;
- if(!GetComputerName(buffer, &bufsize_inout)) {
+ if (!GetComputerName(buffer, &bufsize_inout)) {
strncpy(buffer, "-unknown-", bufsize);
}
#endif
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc
index ef021c09824..efedf847515 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc
@@ -519,7 +519,7 @@ void DepsgraphRelationBuilder::build_rig(Object *object)
add_relation(bone_segments_key,
pose_done_key,
"PoseEval Result-Bone Link",
- DEPSREL_FLAG_GODMODE);
+ DEPSREL_FLAG_GODMODE);
add_relation(bone_segments_key,
pose_cleanup_key,
"Cleanup dependency");
diff --git a/source/blender/modifiers/intern/MOD_particleinstance.c b/source/blender/modifiers/intern/MOD_particleinstance.c
index db552fa2122..0a5b34c90ee 100644
--- a/source/blender/modifiers/intern/MOD_particleinstance.c
+++ b/source/blender/modifiers/intern/MOD_particleinstance.c
@@ -499,7 +499,7 @@ static Mesh *applyModifier(
const int ml_index = (ml - mloop);
if (mloopcols_index != NULL) {
const int part_index = vert_part_index[ml->v];
- store_float_in_vcol(&mloopcols_index[ml_index], (float)part_index / (float)(psys->totpart-1));
+ store_float_in_vcol(&mloopcols_index[ml_index], (float)part_index / (float)(psys->totpart - 1));
}
if (mloopcols_value != NULL) {
const float part_value = vert_part_value[ml->v];