Fix T38323: blender viewport render in particle hair edit mode renders halos.
Currently it's not supported to do viewport render of particles while in particle edit mode, hide the particle instead of rendering halos.
This commit is contained in:
parent
1c8abf8d2a
commit
c2fbec7bf1
Notes:
blender-bot
2023-02-14 11:18:06 +01:00
Referenced by issue #38323, In Particle Edit mode, hair becomes halos when using rendered viewport shading
|
@ -1351,6 +1351,9 @@ static int render_new_particle_system(Render *re, ObjectRen *obr, ParticleSystem
|
|||
if (part->ren_as==PART_DRAW_OB || part->ren_as==PART_DRAW_GR || part->ren_as==PART_DRAW_NOT)
|
||||
return 1;
|
||||
|
||||
if ((re->r.scemode & R_VIEWPORT_PREVIEW) && psys->edit)
|
||||
return 0;
|
||||
|
||||
/* 2. start initializing things */
|
||||
|
||||
/* last possibility to bail out! */
|
||||
|
|
Loading…
Reference in New Issue