[Bf-blender-cvs] [66fde2d0b57] blender2.8: Fix T55634: Particle Viewport Display affects render visibilty
Sergey Sharybin
noreply at git.blender.org
Mon Jul 23 12:54:58 CEST 2018
Commit: 66fde2d0b57f2597d38545937640bad8b6f7ed30
Author: Sergey Sharybin
Date: Mon Jul 23 12:53:46 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB66fde2d0b57f2597d38545937640bad8b6f7ed30
Fix T55634: Particle Viewport Display affects render visibilty
Changed code to follow master behavior closer: ignore draw-as checks
when particles are evaluating for rendering.
===================================================================
M source/blender/blenkernel/intern/particle_system.c
===================================================================
diff --git a/source/blender/blenkernel/intern/particle_system.c b/source/blender/blenkernel/intern/particle_system.c
index 35c8761f671..cee1c9147b5 100644
--- a/source/blender/blenkernel/intern/particle_system.c
+++ b/source/blender/blenkernel/intern/particle_system.c
@@ -2941,7 +2941,7 @@ static void psys_update_path_cache(ParticleSimulationData *sim, float cfra, cons
skip = 1; /* only hair, keyed and baked stuff can have paths */
else if (part->ren_as != PART_DRAW_PATH && !(part->type==PART_HAIR && ELEM(part->ren_as, PART_DRAW_OB, PART_DRAW_GR)))
skip = 1; /* particle visualization must be set as path */
- else {
+ else if (DEG_get_mode(sim->depsgraph) != DAG_EVAL_RENDER) {
if (part->draw_as != PART_DRAW_REND)
skip = 1; /* draw visualization */
else if (psys->pointcache->flag & PTCACHE_BAKING)
More information about the Bf-blender-cvs
mailing list