From 3d6e7cd67c2dac8acbce585efed2fa34341f2676 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 3 Feb 2020 17:40:03 +0100 Subject: Fix Cycles particle hair rendering broken after recent changes This code was already wrong, we were just lucky that the previous coordinate was repeated due to using the same memory location. --- source/blender/makesrna/intern/rna_particle.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'source/blender/makesrna/intern/rna_particle.c') diff --git a/source/blender/makesrna/intern/rna_particle.c b/source/blender/makesrna/intern/rna_particle.c index 36320be9270..a5852a30661 100644 --- a/source/blender/makesrna/intern/rna_particle.c +++ b/source/blender/makesrna/intern/rna_particle.c @@ -400,7 +400,6 @@ static void rna_ParticleSystem_co_hair( } } else { - zero_v3(n_co); return; } @@ -410,9 +409,6 @@ static void rna_ParticleSystem_co_hair( mul_m4_v3(particlesystem->imat, n_co); mul_m4_v3(object->obmat, n_co); } - else { - zero_v3(n_co); - } } static const EnumPropertyItem *rna_Particle_Material_itemf(bContext *C, -- cgit v1.2.3