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:
authorBrecht Van Lommel <brecht@blender.org>2022-07-08 16:53:57 +0300
committerBrecht Van Lommel <brecht@blender.org>2022-07-08 17:21:32 +0300
commit8159e0a666d3d51936e50a36912f38386570af11 (patch)
tree4d6a4615825fd618c7611c965953156daa28d2b4 /intern
parentf639b59a298d42410f4760d125b3e2b524199373 (diff)
Curves: use consistent default radius for Cycles, Eevee, Set Curve Radius node
To avoid Cycles not showing any hair by default, and to avoid very slow render due to many overlaps with the previous 1 meter default in the node. Fixes T97584, T99319 Differential Revision: https://developer.blender.org/D15405
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/blender/curves.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/blender/curves.cpp b/intern/cycles/blender/curves.cpp
index b01cb85711a..10012720bd8 100644
--- a/intern/cycles/blender/curves.cpp
+++ b/intern/cycles/blender/curves.cpp
@@ -868,7 +868,7 @@ static void export_hair_curves(Scene *scene,
for (int i = 0; i < num_points; i++) {
const float3 co = get_float3(b_curves.position_data[first_point_index + i].vector());
const float radius = b_attr_radius ? b_attr_radius->data[first_point_index + i].value() :
- 0.0f;
+ 0.005f;
hair->add_curve_key(co, radius);
if (attr_intercept) {