Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_light.c
| Show First 20 Lines • Show All 206 Lines • ▼ Show 20 Lines | case LA_SPOT: { | ||||
| /* Lights with a location have power in Watts, | /* Lights with a location have power in Watts, | ||||
| * which is sensitive to scene unit scale. */ | * which is sensitive to scene unit scale. */ | ||||
| prop = RNA_def_property(srna, "energy", PROP_FLOAT, PROP_POWER); | prop = RNA_def_property(srna, "energy", PROP_FLOAT, PROP_POWER); | ||||
| RNA_def_property_ui_range(prop, 0.0f, 1000000.0f, 10, 5); | RNA_def_property_ui_range(prop, 0.0f, 1000000.0f, 10, 5); | ||||
| RNA_def_property_ui_text(prop, | RNA_def_property_ui_text(prop, | ||||
| "Power", | "Power", | ||||
| "The energy this light would emit over its entire area " | "The energy this light would emit over its entire area " | ||||
| "if it wasn't limited by the spot angle"); | "if it wasn't limited by the spot angle"); | ||||
| RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_LIGHT); | |||||
| RNA_def_property_update(prop, 0, "rna_Light_draw_update"); | RNA_def_property_update(prop, 0, "rna_Light_draw_update"); | ||||
| break; | break; | ||||
| } | } | ||||
| default: { | default: { | ||||
| /* Lights with a location have power in Watts, | /* Lights with a location have power in Watts, | ||||
| * which is sensitive to scene unit scale. */ | * which is sensitive to scene unit scale. */ | ||||
| prop = RNA_def_property(srna, "energy", PROP_FLOAT, PROP_POWER); | prop = RNA_def_property(srna, "energy", PROP_FLOAT, PROP_POWER); | ||||
| RNA_def_property_ui_range(prop, 0.0f, 1000000.0f, 10, 5); | RNA_def_property_ui_range(prop, 0.0f, 1000000.0f, 10, 5); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, | prop, | ||||
| "Power", | "Power", | ||||
| "Light energy emitted over the entire area of the light in all directions"); | "Light energy emitted over the entire area of the light in all directions"); | ||||
| RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_LIGHT); | |||||
| RNA_def_property_update(prop, 0, "rna_Light_draw_update"); | RNA_def_property_update(prop, 0, "rna_Light_draw_update"); | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| static void rna_def_light_falloff(StructRNA *srna) | static void rna_def_light_falloff(StructRNA *srna) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 316 Lines • Show Last 20 Lines | |||||