3D View: use full opacity by default
Vertex paint overlays the color w/ solid mode, Having a partial overlay makes the sample tool not give useful results.
This commit is contained in:
@@ -1769,11 +1769,10 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain)
|
||||
if (sl->spacetype == SPACE_VIEW3D) {
|
||||
enum { V3D_SHOW_MODE_SHADE_OVERRIDE = (1 << 15), };
|
||||
View3D *v3d = (View3D *)sl;
|
||||
float alpha = v3d->flag2 & V3D_SHOW_MODE_SHADE_OVERRIDE ? 0.0f : 0.8f;
|
||||
float alpha_full = v3d->flag2 & V3D_SHOW_MODE_SHADE_OVERRIDE ? 0.0f : 1.0f;
|
||||
float alpha = v3d->flag2 & V3D_SHOW_MODE_SHADE_OVERRIDE ? 0.0f : 1.0f;
|
||||
v3d->overlay.texture_paint_mode_opacity = alpha;
|
||||
v3d->overlay.vertex_paint_mode_opacity = alpha;
|
||||
v3d->overlay.weight_paint_mode_opacity = alpha_full;
|
||||
v3d->overlay.weight_paint_mode_opacity = alpha;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user