[Bf-blender-cvs] [de266dba646] cycles_procedural_api: fix data accumulation in hair reading from alembic cache
Kévin Dietrich
noreply at git.blender.org
Thu Nov 5 18:57:52 CET 2020
Commit: de266dba64628f3b5475a9ccbda83bf926c3596f
Author: Kévin Dietrich
Date: Tue Nov 3 06:50:42 2020 +0100
Branches: cycles_procedural_api
https://developer.blender.org/rBde266dba64628f3b5475a9ccbda83bf926c3596f
fix data accumulation in hair reading from alembic cache
===================================================================
M intern/cycles/render/alembic.cpp
===================================================================
diff --git a/intern/cycles/render/alembic.cpp b/intern/cycles/render/alembic.cpp
index 9d10b68e74f..43b5c72c239 100644
--- a/intern/cycles/render/alembic.cpp
+++ b/intern/cycles/render/alembic.cpp
@@ -689,6 +689,7 @@ void AlembicProcedural::read_curves(Scene *scene,
ICurvesSchema::Sample samp = curves.getSchema().getValue(ISampleSelector(frame_time));
+ hair->clear();
hair->reserve_curves(samp.getNumCurves(), samp.getPositions()->size());
Abc::Int32ArraySamplePtr curveNumVerts = samp.getCurvesNumVertices();
More information about the Bf-blender-cvs
mailing list