[Bf-blender-cvs] [2a28d63] alembic_basic_io: Cleanup: redundant check.

Kévin Dietrich noreply at git.blender.org
Tue May 31 01:51:17 CEST 2016


Commit: 2a28d636fee07664a8e257862d800b770fca6662
Author: Kévin Dietrich
Date:   Tue May 31 01:45:19 2016 +0200
Branches: alembic_basic_io
https://developer.blender.org/rB2a28d636fee07664a8e257862d800b770fca6662

Cleanup: redundant check.

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

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

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

diff --git a/source/blender/alembic/intern/abc_hair.cc b/source/blender/alembic/intern/abc_hair.cc
index c5b63ac..dd62c1f 100644
--- a/source/blender/alembic/intern/abc_hair.cc
+++ b/source/blender/alembic/intern/abc_hair.cc
@@ -95,9 +95,9 @@ void AbcHairWriter::do_write()
 	std::vector<Imath::V2f> uv_values;
 	std::vector<Imath::V3f> norm_values;
 
-	ParticleSettings *part = m_psys->part;
+	if (m_psys->pathcache) {
+		ParticleSettings *part = m_psys->part;
 
-	if (part->type == PART_HAIR && m_psys->pathcache) {
 		write_hair_sample(dm, part, verts, norm_values, uv_values, hvertices);
 
 		if (m_settings.export_child_hairs && m_psys->childcache) {




More information about the Bf-blender-cvs mailing list