Fix #31754: strand width fade value 2.0 gives wrong result, should fade out
[blender.git] / source / blender / render / intern / source / convertblender.c
index a48a6b75049654f662c42277789b702695f7d305..4eebc9678231f9688774346e4fa564cf0c02c6c2 100644 (file)
@@ -1729,7 +1729,7 @@ static int render_new_particle_system(Render *re, ObjectRen *obr, ParticleSystem
                        strandbuf->minwidth= ma->strand_min;
 
                        if (ma->strand_widthfade == 0.0f)
-                               strandbuf->widthfade= 0.0f;
+                               strandbuf->widthfade= -1.0f;
                        else if (ma->strand_widthfade >= 1.0f)
                                strandbuf->widthfade= 2.0f - ma->strand_widthfade;
                        else