diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-11-29 21:54:23 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-11-29 23:52:36 +0300 |
commit | 844788a36cb0e1efdf3a2010ee67abcb7c46474c (patch) | |
tree | 202fbd26d4b397dbcf0eaae063e555591233542d /source/blender/makesdna/DNA_userdef_types.h | |
parent | 8f4ab480bfe81f40b59b20780cb452736fe3af1d (diff) |
Workbench: Add back studio lighting presets
This changes a bit how the userprefs solid lights works. They are not
visible until enabling the "Edit Solid Light" checkbox. Once enabled the
current studiolight used for solid mode will be overwritten.
Once the lighting settings are tweaked, the user can click the
"Save as Studio light" button to save the current settings.
This makes it easy to create new lighting without messing the other
presets.
The studio lights are stored as ASCII files on the disk using a dead
simple custom format.
The UI/UX is not perfect and will be improved in other commits.
Also includes:
* Separate LookDev HDRI selection from Solid Lights
* Hide LookDev HDRIs from the Solid Lights selection list
Diffstat (limited to 'source/blender/makesdna/DNA_userdef_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_userdef_types.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_userdef_types.h b/source/blender/makesdna/DNA_userdef_types.h index 5bb3523a458..e0bed7216e2 100644 --- a/source/blender/makesdna/DNA_userdef_types.h +++ b/source/blender/makesdna/DNA_userdef_types.h @@ -589,7 +589,8 @@ typedef struct UserDef { struct SolidLight light[3]; float light_ambient[3], pad7; short gizmo_flag, gizmo_size; - short pad6[3]; + short edit_solid_light; + short pad6[2]; short textimeout, texcollectrate; short dragthreshold; int memcachelimit; |