Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_brush.c
| Context not available. | |||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| static const EnumPropertyItem prop_blend_items[] = { | static const EnumPropertyItem prop_blend_items[] = { | ||||
| {IMB_BLEND_MIX, "MIX", 0, "Mix", "Use mix blending mode while painting"}, | {IMB_BLEND_MIX, "MIX", 0, "Mix", "Use Mix blending mode while painting"}, | ||||
| {0, "", ICON_NONE, NULL, NULL}, | {0, "", ICON_NONE, NULL, NULL}, | ||||
| {IMB_BLEND_DARKEN, "DARKEN", 0, "Darken", "Use darken blending mode while painting"}, | {IMB_BLEND_DARKEN, "DARKEN", 0, "Darken", "Use Darken blending mode while painting"}, | ||||
| {IMB_BLEND_MUL, "MUL", 0, "Multiply", "Use multiply blending mode while painting"}, | {IMB_BLEND_MUL, "MUL", 0, "Multiply", "Use Multiply blending mode while painting"}, | ||||
| {IMB_BLEND_COLORBURN, | {IMB_BLEND_COLORBURN, | ||||
| "COLORBURN", | "COLORBURN", | ||||
| 0, | 0, | ||||
| "Color burn", | "Color Burn", | ||||
| "Use color burn blending mode while painting"}, | "Use Color Burn blending mode while painting"}, | ||||
| {IMB_BLEND_LINEARBURN, | {IMB_BLEND_LINEARBURN, | ||||
| "LINEARBURN", | "LINEARBURN", | ||||
| 0, | 0, | ||||
| "Linear burn", | "Linear Burn", | ||||
| "Use linear burn blending mode while painting"}, | "Use Linear Burn blending mode while painting"}, | ||||
| {0, "", ICON_NONE, NULL, NULL}, | {0, "", ICON_NONE, NULL, NULL}, | ||||
| {IMB_BLEND_LIGHTEN, "LIGHTEN", 0, "Lighten", "Use lighten blending mode while painting"}, | {IMB_BLEND_LIGHTEN, "LIGHTEN", 0, "Lighten", "Use Lighten blending mode while painting"}, | ||||
| {IMB_BLEND_SCREEN, "SCREEN", 0, "Screen", "Use screen blending mode while painting"}, | {IMB_BLEND_SCREEN, "SCREEN", 0, "Screen", "Use Screen blending mode while painting"}, | ||||
| {IMB_BLEND_COLORDODGE, | {IMB_BLEND_COLORDODGE, | ||||
| "COLORDODGE", | "COLORDODGE", | ||||
| 0, | 0, | ||||
| "Color dodge", | "Color Dodge", | ||||
| "Use color dodge blending mode while painting"}, | "Use Color Dodge blending mode while painting"}, | ||||
| {IMB_BLEND_ADD, "ADD", 0, "Add", "Use add blending mode while painting"}, | {IMB_BLEND_ADD, "ADD", 0, "Add", "Use Add blending mode while painting"}, | ||||
| {0, "", ICON_NONE, NULL, NULL}, | {0, "", ICON_NONE, NULL, NULL}, | ||||
| {IMB_BLEND_OVERLAY, "OVERLAY", 0, "Overlay", "Use overlay blending mode while painting"}, | {IMB_BLEND_OVERLAY, "OVERLAY", 0, "Overlay", "Use Overlay blending mode while painting"}, | ||||
| {IMB_BLEND_SOFTLIGHT, | {IMB_BLEND_SOFTLIGHT, | ||||
| "SOFTLIGHT", | "SOFTLIGHT", | ||||
| 0, | 0, | ||||
| "Soft light", | "Soft Light", | ||||
| "Use softlight blending mode while painting"}, | "Use Soft Light blending mode while painting"}, | ||||
| {IMB_BLEND_HARDLIGHT, | {IMB_BLEND_HARDLIGHT, | ||||
| "HARDLIGHT", | "HARDLIGHT", | ||||
| 0, | 0, | ||||
| "Hard light", | "Hard Light", | ||||
| "Use hard light blending mode while painting"}, | "Use Hard Light blending mode while painting"}, | ||||
| {IMB_BLEND_VIVIDLIGHT, | {IMB_BLEND_VIVIDLIGHT, | ||||
| "VIVIDLIGHT", | "VIVIDLIGHT", | ||||
| 0, | 0, | ||||
| "Vivid light", | "Vivid Light", | ||||
| "Use vividlight blending mode while painting"}, | "Use Vivid Light blending mode while painting"}, | ||||
| {IMB_BLEND_LINEARLIGHT, | {IMB_BLEND_LINEARLIGHT, | ||||
| "LINEARLIGHT", | "LINEARLIGHT", | ||||
| 0, | 0, | ||||
| "Linear light", | "Linear Light", | ||||
| "Use linearlight blending mode while painting"}, | "Use Linear Light blending mode while painting"}, | ||||
| {IMB_BLEND_PINLIGHT, | {IMB_BLEND_PINLIGHT, | ||||
| "PINLIGHT", | "PINLIGHT", | ||||
| 0, | 0, | ||||
| "Pin light", | "Pin Light", | ||||
| "Use pinlight blending mode while painting"}, | "Use Pin Light blending mode while painting"}, | ||||
| {0, "", ICON_NONE, NULL, NULL}, | {0, "", ICON_NONE, NULL, NULL}, | ||||
| {IMB_BLEND_DIFFERENCE, | {IMB_BLEND_DIFFERENCE, | ||||
| "DIFFERENCE", | "DIFFERENCE", | ||||
| 0, | 0, | ||||
| "Difference", | "Difference", | ||||
| "Use difference blending mode while painting"}, | "Use Difference blending mode while painting"}, | ||||
| {IMB_BLEND_EXCLUSION, | {IMB_BLEND_EXCLUSION, | ||||
| "EXCLUSION", | "EXCLUSION", | ||||
| 0, | 0, | ||||
| "Exclusion", | "Exclusion", | ||||
| "Use exclusion blending mode while painting"}, | "Use Exclusion blending mode while painting"}, | ||||
| {IMB_BLEND_SUB, "SUB", 0, "Subtract", "Use subtract blending mode while painting"}, | {IMB_BLEND_SUB, "SUB", 0, "Subtract", "Use Subtract blending mode while painting"}, | ||||
| {0, "", ICON_NONE, NULL, NULL}, | {0, "", ICON_NONE, NULL, NULL}, | ||||
| {IMB_BLEND_HUE, "HUE", 0, "Hue", "Use hue blending mode while painting"}, | {IMB_BLEND_HUE, "HUE", 0, "Hue", "Use Hue blending mode while painting"}, | ||||
| {IMB_BLEND_SATURATION, | {IMB_BLEND_SATURATION, | ||||
| "SATURATION", | "SATURATION", | ||||
| 0, | 0, | ||||
| "Saturation", | "Saturation", | ||||
| "Use saturation blending mode while painting"}, | "Use Saturation blending mode while painting"}, | ||||
| {IMB_BLEND_COLOR, "COLOR", 0, "Color", "Use color blending mode while painting"}, | {IMB_BLEND_COLOR, "COLOR", 0, "Color", "Use Color blending mode while painting"}, | ||||
| {IMB_BLEND_LUMINOSITY, | {IMB_BLEND_LUMINOSITY, | ||||
| "LUMINOSITY", | "LUMINOSITY", | ||||
| 0, | 0, | ||||
| "Luminosity", | "Value", | ||||
| "Use luminosity blending mode while painting"}, | "Use Value blending mode while painting"}, | ||||
| {0, "", ICON_NONE, NULL, NULL}, | {0, "", ICON_NONE, NULL, NULL}, | ||||
| {IMB_BLEND_ERASE_ALPHA, "ERASE_ALPHA", 0, "Erase Alpha", "Erase alpha while painting"}, | {IMB_BLEND_ERASE_ALPHA, "ERASE_ALPHA", 0, "Erase Alpha", "Erase alpha while painting"}, | ||||
| {IMB_BLEND_ADD_ALPHA, "ADD_ALPHA", 0, "Add Alpha", "Add alpha while painting"}, | {IMB_BLEND_ADD_ALPHA, "ADD_ALPHA", 0, "Add Alpha", "Add alpha while painting"}, | ||||
| Context not available. | |||||
| /* enums */ | /* enums */ | ||||
| prop = RNA_def_property(srna, "blend", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "blend", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_items(prop, prop_blend_items); | RNA_def_property_enum_items(prop, prop_blend_items); | ||||
| RNA_def_property_ui_text(prop, "Blending mode", "Brush blending mode"); | RNA_def_property_ui_text(prop, "Blending Mode", "Brush blending mode"); | ||||
| RNA_def_property_update(prop, 0, "rna_Brush_update"); | RNA_def_property_update(prop, 0, "rna_Brush_update"); | ||||
| /** | /** | ||||
| Context not available. | |||||
| prop = RNA_def_property(srna, "size", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "size", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_flag(prop, PROP_IDPROPERTY); | RNA_def_property_flag(prop, PROP_IDPROPERTY); | ||||
| RNA_def_property_range(prop, 0.0f, FLT_MAX); | RNA_def_property_range(prop, 0.0f, FLT_MAX); | ||||
| RNA_def_property_ui_text(prop, "Brush Size", "Brush Size in screen space"); | RNA_def_property_ui_text(prop, "Brush Size", "Brush size in screen space"); | ||||
| prop = RNA_def_property(srna, "pen_flip", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "pen_flip", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_flag(prop, PROP_IDPROPERTY); | RNA_def_property_flag(prop, PROP_IDPROPERTY); | ||||
| Context not available. | |||||