FIX T101445: halo Particles are not working.
color uniform assignment needing to be changed to ucolor was missed. Ref T101445 Reviewed By: fclem Maniphest Tasks: T101445 Differential Revision: https://developer.blender.org/D16236
This commit is contained in:
parent
694481095b
commit
d3b47fa842
Notes:
blender-bot
2023-05-31 04:43:10 +02:00
Referenced by issue #101445, Regression: halo Particles are not working.
|
@ -181,14 +181,14 @@ void OVERLAY_particle_cache_populate(OVERLAY_Data *vedata, Object *ob)
|
|||
default:
|
||||
case PART_DRAW_DOT:
|
||||
grp = DRW_shgroup_create_sub(pd->particle_dots_grp);
|
||||
DRW_shgroup_uniform_vec4_copy(grp, "color", color);
|
||||
DRW_shgroup_uniform_vec4_copy(grp, "ucolor", color);
|
||||
DRW_shgroup_call(grp, geom, nullptr);
|
||||
break;
|
||||
case PART_DRAW_AXIS:
|
||||
case PART_DRAW_CIRC:
|
||||
case PART_DRAW_CROSS:
|
||||
grp = DRW_shgroup_create_sub(pd->particle_shapes_grp);
|
||||
DRW_shgroup_uniform_vec4_copy(grp, "color", color);
|
||||
DRW_shgroup_uniform_vec4_copy(grp, "ucolor", color);
|
||||
shape = DRW_cache_particles_get_prim(draw_as);
|
||||
DRW_shgroup_call_instances_with_attrs(grp, nullptr, shape, geom);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue