[Bf-blender-cvs] [b668b186d7f] fluid-mantaflow: fix for alembic particle exporter

Sebastián Barschkis noreply at git.blender.org
Mon Nov 13 20:53:07 CET 2017


Commit: b668b186d7fcaffe6f3356dc941b14eaeaf24852
Author: Sebastián Barschkis
Date:   Mon Nov 13 20:52:56 2017 +0100
Branches: fluid-mantaflow
https://developer.blender.org/rBb668b186d7fcaffe6f3356dc941b14eaeaf24852

fix for alembic particle exporter

added missing type checks for manta particle systems

===================================================================

M	source/blender/alembic/intern/abc_exporter.cc

===================================================================

diff --git a/source/blender/alembic/intern/abc_exporter.cc b/source/blender/alembic/intern/abc_exporter.cc
index dfcf0e2cf2d..14d987ed108 100644
--- a/source/blender/alembic/intern/abc_exporter.cc
+++ b/source/blender/alembic/intern/abc_exporter.cc
@@ -541,7 +541,11 @@ void AbcExporter::createParticleSystemsWriters(Object *ob, AbcTransformWriter *x
 			m_settings.export_child_hairs = true;
 			m_shapes.push_back(new AbcHairWriter(m_scene, ob, xform, m_shape_sampling_index, m_settings, psys));
 		}
-		else if (m_settings.export_particles && psys->part->type == PART_EMITTER) {
+		else if (m_settings.export_particles &&
+				 (psys->part->type == PART_EMITTER || psys->part->type == PART_MANTA_FLIP ||
+				  psys->part->type == PART_MANTA_DROP || psys->part->type == PART_MANTA_BUBBLE ||
+				  psys->part->type == PART_MANTA_FLOAT || psys->part->type == PART_MANTA_TRACER))
+		{
 			m_shapes.push_back(new AbcPointsWriter(m_scene, ob, xform, m_shape_sampling_index, m_settings, psys));
 		}
 	}



More information about the Bf-blender-cvs mailing list