Fix background color use in 3D view
authorCampbell Barton <ideasman42@gmail.com>
Fri, 11 Jan 2019 01:59:19 +0000 (12:59 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 11 Jan 2019 01:59:19 +0000 (12:59 +1100)
commit5c6d5cb8639aa71e2728258e9a4afe7c9d822bc7
tree6633ee4150ef2246ffa8ced974f1b883d1d4bb44
parentf98e4cbedbb73d22b649275208e0318838dea089
Fix background color use in 3D view

TH_BACK was being used when drawing the 3D view even though
there was no way to set the color in the preferences.

The color was zero'd when moving to the new 2.8x theme.

Having both gradient and background colors was confusing,
especially having to use 'TH_HIGH_GRAD' for the 3D view, 'TH_BACK' for
other views.

Move the background color back to 'TH_BACK', 'TH_BACK_GRAD' is used
when gradients are enabled.
RNA is unchanged so presets don't need updating.
12 files changed:
release/datafiles/userdef/userdef_default_theme.c
source/blender/blenkernel/BKE_blender_version.h
source/blender/blenloader/intern/versioning_userdef.c
source/blender/draw/engines/eevee/eevee_lookdev.c
source/blender/draw/engines/workbench/workbench_data.c
source/blender/draw/intern/draw_common.c
source/blender/draw/intern/draw_view.c
source/blender/editors/include/UI_resources.h
source/blender/editors/interface/resources.c
source/blender/editors/space_view3d/view3d_utils.c
source/blender/makesdna/DNA_userdef_types.h
source/blender/makesrna/intern/rna_userdef.c