Fix #106155 : Hair dynamics not working well when converted from curves #108651

Merged
Philipp Oeser merged 1 commits from lichtwerk/blender:106155 into blender-v3.6-release 2023-06-07 14:49:25 +02:00
1 changed files with 3 additions and 1 deletions

View File

@ -372,7 +372,9 @@ static void try_convert_single_object(Object &curves_ob,
HairKey &key = hair_keys[key_i];
copy_v3_v3(key.co, key_pos_ha);
key.time = 100.0f * key_i / float(hair_keys.size() - 1);
const float key_fac = key_i / float(hair_keys.size() - 1);
key.time = 100.0f * key_fac;
key.weight = 1.0f - key_fac;
}
}