diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-02-08 14:31:28 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-02-17 18:23:00 +0300 |
commit | ce5d079a490841ea52736dacf418357a9bbc5923 (patch) | |
tree | d6726cb0cb63e59f350fc46ca7d6d0ad3a1148f1 /source/blender/makesrna/intern/makesrna.c | |
parent | 6c24de95c0f3af084c2314f2ff9443efba675453 (diff) |
Units: add support for light power units in Watt. Use for Eevee lights.
This affects point, spot and area lights. Sun light strength remains without
a unit. This change does not affect .blend file compatibility in any way, as
with the rest of the unit system it's purely a display and editing feature.
Not used for Cycles yet, that will be done after unifying the settings with
Eevee.
Diffstat (limited to 'source/blender/makesrna/intern/makesrna.c')
-rw-r--r-- | source/blender/makesrna/intern/makesrna.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/makesrna.c b/source/blender/makesrna/intern/makesrna.c index 7230b65738b..df8911f425c 100644 --- a/source/blender/makesrna/intern/makesrna.c +++ b/source/blender/makesrna/intern/makesrna.c @@ -2579,6 +2579,7 @@ static const char *rna_property_subtypename(PropertySubType type) case PROP_LAYER: return "PROP_LAYER"; case PROP_LAYER_MEMBER: return "PROP_LAYER_MEMBER"; case PROP_PASSWORD: return "PROP_PASSWORD"; + case PROP_POWER: return "PROP_POWER"; default: { /* in case we don't have a type preset that includes the subtype */ @@ -2605,6 +2606,7 @@ static const char *rna_property_subtype_unit(PropertySubType type) case PROP_UNIT_VELOCITY: return "PROP_UNIT_VELOCITY"; case PROP_UNIT_ACCELERATION: return "PROP_UNIT_ACCELERATION"; case PROP_UNIT_CAMERA: return "PROP_UNIT_CAMERA"; + case PROP_UNIT_POWER: return "PROP_UNIT_POWER"; default: return "PROP_UNIT_UNKNOWN"; } } |