From 844788a36cb0e1efdf3a2010ee67abcb7c46474c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Thu, 29 Nov 2018 19:54:23 +0100 Subject: 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 --- source/blender/makesdna/DNA_view3d_types.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/makesdna/DNA_view3d_types.h') diff --git a/source/blender/makesdna/DNA_view3d_types.h b/source/blender/makesdna/DNA_view3d_types.h index b06f94db064..5c31f377447 100644 --- a/source/blender/makesdna/DNA_view3d_types.h +++ b/source/blender/makesdna/DNA_view3d_types.h @@ -148,6 +148,7 @@ typedef struct View3DShading { char pad[7]; char studio_light[256]; /* FILE_MAXFILE */ + char lookdev_light[256]; /* FILE_MAXFILE */ char matcap[256]; /* FILE_MAXFILE */ float shadow_intensity; -- cgit v1.2.3