Fix normal attribute was defined per curve instead of per key

This commit is contained in:
Weizhen Huang 2022-12-27 13:51:58 +01:00
parent 4990122abb
commit 8bad526d51
1 changed files with 5 additions and 5 deletions

View File

@ -326,12 +326,12 @@ static void ExportCurveSegments(Scene *scene, Hair *hair, ParticleCurveData *CDa
if (attr_intercept)
attr_intercept->add(time);
num_curve_keys++;
}
if (attr_normal) {
/* TODO: compute geometry normals. */
attr_normal->add(make_float3(1.0f, 0.0f, 0.0f));
}
if (attr_normal != NULL) {
/* TODO: compute geometry normals. */
attr_normal->add(make_float3(1.0f, 0.0f, 0.0f));
num_curve_keys++;
}
if (attr_length != NULL) {