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
path: root/intern
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2021-09-24 11:45:36 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2021-09-24 11:45:36 +0300
commit3ac342dc6d8024024de095dadb7b2a1e7b53583d (patch)
tree16555815f52cb03ccd519aa506b9a513c311214c /intern
parent9a45a4c52597fbdc1cc5871329fdbc4db3b4357f (diff)
Cleanup: clang format
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/blender/blender_curves.cpp9
-rw-r--r--intern/cycles/render/nodes.cpp2
2 files changed, 4 insertions, 7 deletions
diff --git a/intern/cycles/blender/blender_curves.cpp b/intern/cycles/blender/blender_curves.cpp
index c7851e40543..b6b4f206620 100644
--- a/intern/cycles/blender/blender_curves.cpp
+++ b/intern/cycles/blender/blender_curves.cpp
@@ -339,8 +339,7 @@ static void ExportCurveSegments(Scene *scene, Hair *hair, ParticleCurveData *CDa
num_curve_keys++;
}
- if (attr_length != NULL)
- {
+ if (attr_length != NULL) {
attr_length->add(CData->curve_length[curve]);
}
@@ -671,8 +670,7 @@ static void export_hair_curves(Scene *scene, Hair *hair, BL::Hair b_hair)
if (hair->need_attribute(scene, ATTR_STD_CURVE_INTERCEPT)) {
attr_intercept = hair->attributes.add(ATTR_STD_CURVE_INTERCEPT);
}
- if (hair->need_attribute(scene, ATTR_STD_CURVE_LENGTH))
- {
+ if (hair->need_attribute(scene, ATTR_STD_CURVE_LENGTH)) {
attr_length = hair->attributes.add(ATTR_STD_CURVE_LENGTH);
}
if (hair->need_attribute(scene, ATTR_STD_CURVE_RANDOM)) {
@@ -727,8 +725,7 @@ static void export_hair_curves(Scene *scene, Hair *hair, BL::Hair b_hair)
}
}
- if (attr_length)
- {
+ if (attr_length) {
attr_length->add(length);
}
diff --git a/intern/cycles/render/nodes.cpp b/intern/cycles/render/nodes.cpp
index e5071c25730..90f70cf19ec 100644
--- a/intern/cycles/render/nodes.cpp
+++ b/intern/cycles/render/nodes.cpp
@@ -4391,7 +4391,7 @@ void HairInfoNode::attributes(Shader *shader, AttributeRequestSet *attributes)
if (!intercept_out->links.empty())
attributes->add(ATTR_STD_CURVE_INTERCEPT);
- if (!output("Length")->links.empty())
+ if (!output("Length")->links.empty())
attributes->add(ATTR_STD_CURVE_LENGTH);
if (!output("Random")->links.empty())