Fix T49609: Point density textures: vertex colors are not properly averaged in BI
Nice to have in 2.78a, though not a regression.
This commit is contained in:
parent
4cb60b14e0
commit
1fad269d07
Notes:
blender-bot
2023-02-14 07:39:46 +01:00
Referenced by issue #49609, Point density textures: vertex colors are not properly averaged
|
@ -333,7 +333,16 @@ static void pointdensity_cache_vertex_color(PointDensity *pd, Object *UNUSED(ob)
|
|||
|
||||
for (i = 0; i < totloop; i++) {
|
||||
int v = mloop[i].v;
|
||||
rgb_uchar_to_float(&data_color[v*3], &mcol[i].r);
|
||||
|
||||
if (mcorners[v] == 0) {
|
||||
rgb_uchar_to_float(&data_color[v * 3], &mcol[i].r);
|
||||
}
|
||||
else {
|
||||
float col[3];
|
||||
rgb_uchar_to_float(col, &mcol[i].r);
|
||||
add_v3_v3(&data_color[v * 3], col);
|
||||
}
|
||||
|
||||
++mcorners[v];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue