Log In
New Account
Home My Page Projects Blender 2.x BF release
Summary Activity Tracker SCM Files

Blender 2.6 Bug Tracker: Browse

[#26543] Linear light and Soft light blend modes are missing from Lamp > Sky and Atmosphere panel

Date:
2011-03-19 00:14
Priority:
3
State:
Closed
Submitted by:
Charlie Jolly (charlie)
Assigned to:
Nobody (None)
Category:
Interface
Status:
Fixed / Closed
Relates to:
Duplicates:
Patches:
 
Summary:
Linear light and Soft light blend modes are missing from Lamp > Sky and Atmosphere panel
Detailed description
Perhapss blend modes are not used too often but for the sake of consistency these should be added....

Possible solution is to update the rna for the UI, updated code added below.

Also, makes use of defined constants instead of integers as used elsewhere.

From rna_lamp.c >>> rna_def_lamp_sky_settings

static EnumPropertyItem prop_blendmode_items[] = {
{MA_RAMP_BLEND, "MIX", 0, "Mix", ""},
{MA_RAMP_ADD, "ADD", 0, "Add", ""},
{MA_RAMP_MULT, "MULTIPLY", 0, "Multiply", ""},
{MA_RAMP_SUB, "SUBTRACT", 0, "Subtract", ""},
{MA_RAMP_SCREEN, "SCREEN", 0, "Screen", ""},
{MA_RAMP_DIV, "DIVIDE", 0, "Divide", ""},
{MA_RAMP_DIFF, "DIFFERENCE", 0, "Difference", ""},
{MA_RAMP_DARK, "DARKEN", 0, "Darken", ""},
{MA_RAMP_LIGHT, "LIGHTEN", 0, "Lighten", ""},
{MA_RAMP_OVERLAY, "OVERLAY", 0, "Overlay", ""},
{MA_RAMP_DODGE, "DODGE", 0, "Dodge", ""},
{MA_RAMP_BURN, "BURN", 0, "Burn", ""},
{MA_RAMP_HUE, "HUE", 0, "Hue", ""},
{MA_RAMP_SAT, "SATURATION", 0, "Saturation", ""},
{MA_RAMP_VAL, "VALUE", 0, "Value", ""},
{MA_RAMP_COLOR, "COLOR", 0, "Color", ""},
{MA_RAMP_SOFT, "SOFT_LIGHT", 0, "Soft Light", ""},
{MA_RAMP_LINEAR, "LINEAR_LIGHT", 0, "Linear Light", ""},
{0, NULL, 0, NULL, NULL}};

Followup

Message
 

Attached Files:

No Files Currently Attached

Changes:

Field Old Value Date By
StatusNew2011-03-19 11:26blendix
status_idOpen2011-03-19 11:26blendix
close_dateNone2011-03-19 11:26blendix