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
diff options
context:
space:
mode:
authorLukas Tönne <lukas.toenne@gmail.com>2015-03-05 15:43:31 +0300
committerLukas Tönne <lukas.toenne@gmail.com>2015-03-26 16:12:48 +0300
commit38b0940a5472404e04f0c2475e911bd98ca6cc71 (patch)
tree9d85d1ebbc02d80899788a8e83b9a08a403a6c2e /source/blender/pointcache/PTC_api.cpp
parent15e3298d54b393f9f95d721a3e143069d946c734 (diff)
Use a combined class for hair dynamics for cloth and mesh data.
Particles store a copy of the DM internally as the emitter.
Diffstat (limited to 'source/blender/pointcache/PTC_api.cpp')
-rw-r--r--source/blender/pointcache/PTC_api.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/pointcache/PTC_api.cpp b/source/blender/pointcache/PTC_api.cpp
index 2d3878225de..5da526820d6 100644
--- a/source/blender/pointcache/PTC_api.cpp
+++ b/source/blender/pointcache/PTC_api.cpp
@@ -244,16 +244,6 @@ PTCReader *PTC_reader_cloth(const char *name, Object *ob, ClothModifierData *clm
return (PTCReader *)PTC::Factory::alembic->create_reader_cloth(name, ob, clmd);
}
-PTCWriter *PTC_writer_hair_dynamics(const char *name, Object *ob, ClothModifierData *clmd)
-{
- return (PTCWriter *)PTC::Factory::alembic->create_writer_hair_dynamics(name, ob, clmd);
-}
-
-PTCReader *PTC_reader_hair_dynamics(const char *name, Object *ob, ClothModifierData *clmd)
-{
- return (PTCReader *)PTC::Factory::alembic->create_reader_hair_dynamics(name, ob, clmd);
-}
-
/* ==== MESH ==== */
@@ -318,6 +308,16 @@ int PTC_reader_particles_totpoint(PTCReader *_reader)
return ((PTC::ParticlesReader *)_reader)->totpoint();
}
+PTCWriter *PTC_writer_hair_dynamics(const char *name, Object *ob, ParticleSystem *psys)
+{
+ return (PTCWriter *)PTC::Factory::alembic->create_writer_hair_dynamics(name, ob, psys);
+}
+
+PTCReader *PTC_reader_hair_dynamics(const char *name, Object *ob, ParticleSystem *psys)
+{
+ return (PTCReader *)PTC::Factory::alembic->create_reader_hair_dynamics(name, ob, psys);
+}
+
PTCWriter *PTC_writer_particles_pathcache_parents(const char *name, Object *ob, ParticleSystem *psys)
{
return (PTCWriter *)PTC::Factory::alembic->create_writer_particles_pathcache_parents(name, ob, psys);