From 8159e0a666d3d51936e50a36912f38386570af11 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Fri, 8 Jul 2022 15:53:57 +0200 Subject: 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 --- intern/cycles/blender/curves.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'intern/cycles/blender/curves.cpp') 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) { -- cgit v1.2.3