Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_userdef.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 4,051 Lines • ▼ Show 20 Lines | parm = RNA_def_string( | ||||
| func, "path", NULL, 0, "File Path", "File path where the studio light file can be found"); | func, "path", NULL, 0, "File Path", "File path where the studio light file can be found"); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| parm = RNA_def_enum(func, | parm = RNA_def_enum(func, | ||||
| "type", | "type", | ||||
| rna_enum_studio_light_type_items, | rna_enum_studio_light_type_items, | ||||
| STUDIOLIGHT_TYPE_WORLD, | STUDIOLIGHT_TYPE_WORLD, | ||||
| "Type", | "Type", | ||||
| "The type for the new studio light"); | "The type for the new studio light"); | ||||
| RNA_def_property_translation_context(parm, BLT_I18NCONTEXT_ID_LIGHT); | |||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| parm = RNA_def_pointer(func, "studio_light", "StudioLight", "", "Newly created StudioLight"); | parm = RNA_def_pointer(func, "studio_light", "StudioLight", "", "Newly created StudioLight"); | ||||
| RNA_def_function_return(func, parm); | RNA_def_function_return(func, parm); | ||||
| func = RNA_def_function(srna, "new", "rna_StudioLights_new"); | func = RNA_def_function(srna, "new", "rna_StudioLights_new"); | ||||
| RNA_def_function_ui_description(func, "Create studiolight from default lighting"); | RNA_def_function_ui_description(func, "Create studiolight from default lighting"); | ||||
| parm = RNA_def_string( | parm = RNA_def_string( | ||||
| func, | func, | ||||
| ▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | RNA_def_property_ui_text( | ||||
| "Has Specular Highlight", | "Has Specular Highlight", | ||||
| "Studio light image file has separate \"diffuse\" and \"specular\" passes"); | "Studio light image file has separate \"diffuse\" and \"specular\" passes"); | ||||
| prop = RNA_def_property(srna, "type", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "type", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_items(prop, rna_enum_studio_light_type_items); | RNA_def_property_enum_items(prop, rna_enum_studio_light_type_items); | ||||
| RNA_def_property_enum_funcs(prop, "rna_UserDef_studiolight_type_get", NULL, NULL); | RNA_def_property_enum_funcs(prop, "rna_UserDef_studiolight_type_get", NULL, NULL); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_ui_text(prop, "Type", ""); | RNA_def_property_ui_text(prop, "Type", ""); | ||||
| RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_LIGHT); | |||||
| prop = RNA_def_property(srna, "name", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "name", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_string_funcs( | RNA_def_property_string_funcs( | ||||
| prop, "rna_UserDef_studiolight_name_get", "rna_UserDef_studiolight_name_length", NULL); | prop, "rna_UserDef_studiolight_name_get", "rna_UserDef_studiolight_name_length", NULL); | ||||
| RNA_def_property_ui_text(prop, "Name", ""); | RNA_def_property_ui_text(prop, "Name", ""); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_struct_name_property(srna, prop); | RNA_def_struct_name_property(srna, prop); | ||||
| ▲ Show 20 Lines • Show All 2,480 Lines • Show Last 20 Lines | |||||