diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-06-12 13:59:54 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-06-12 14:34:55 +0300 |
commit | f52dc2f371923c22a974df7105245f7e0b8148ee (patch) | |
tree | bd65af657cf7f06fdb01ee953182562c69189fed /source/blender/makesrna/intern/rna_main_api.c | |
parent | 12bd960df9bb9d96477b9913df8aec6fc7d87f95 (diff) |
Rename probe to light-probe
Probe is a real general term, the new name is used often in docs online.
Diffstat (limited to 'source/blender/makesrna/intern/rna_main_api.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_main_api.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/source/blender/makesrna/intern/rna_main_api.c b/source/blender/makesrna/intern/rna_main_api.c index 536e65c6e2a..5b898d7fd40 100644 --- a/source/blender/makesrna/intern/rna_main_api.c +++ b/source/blender/makesrna/intern/rna_main_api.c @@ -79,7 +79,7 @@ #include "BKE_font.h" #include "BKE_node.h" #include "BKE_speaker.h" -#include "BKE_probe.h" +#include "BKE_lightprobe.h" #include "BKE_movieclip.h" #include "BKE_mask.h" #include "BKE_gpencil.h" @@ -96,7 +96,7 @@ #include "DNA_mesh_types.h" #include "DNA_speaker_types.h" #include "DNA_sound_types.h" -#include "DNA_probe_types.h" +#include "DNA_lightprobe_types.h" #include "DNA_text_types.h" #include "DNA_texture_types.h" #include "DNA_group_types.h" @@ -575,12 +575,12 @@ static FreestyleLineStyle *rna_Main_linestyles_new(Main *bmain, const char *name return linestyle; } -static Probe *rna_Main_probe_new(Main *bmain, const char *name) +static LightProbe *rna_Main_lightprobe_new(Main *bmain, const char *name) { char safe_name[MAX_ID_NAME - 2]; rna_idname_validate(name, safe_name); - Probe *probe = BKE_probe_add(bmain, safe_name); + LightProbe *probe = BKE_lightprobe_add(bmain, safe_name); id_us_min(&probe->id); return probe; } @@ -628,7 +628,7 @@ RNA_MAIN_ID_TAG_FUNCS_DEF(linestyle, linestyle, ID_LS) RNA_MAIN_ID_TAG_FUNCS_DEF(cachefiles, cachefiles, ID_CF) RNA_MAIN_ID_TAG_FUNCS_DEF(paintcurves, paintcurves, ID_PC) RNA_MAIN_ID_TAG_FUNCS_DEF(workspaces, workspaces, ID_WS) -RNA_MAIN_ID_TAG_FUNCS_DEF(probes, probe, ID_PRB) +RNA_MAIN_ID_TAG_FUNCS_DEF(lightprobes, lightprobe, ID_LP) #undef RNA_MAIN_ID_TAG_FUNCS_DEF @@ -1859,7 +1859,7 @@ void RNA_def_main_workspaces(BlenderRNA *brna, PropertyRNA *cprop) RNA_def_property_boolean_funcs(prop, "rna_Main_workspaces_is_updated_get", NULL); } -void RNA_def_main_probes(BlenderRNA *brna, PropertyRNA *cprop) +void RNA_def_main_lightprobes(BlenderRNA *brna, PropertyRNA *cprop) { StructRNA *srna; FunctionRNA *func; @@ -1869,33 +1869,33 @@ void RNA_def_main_probes(BlenderRNA *brna, PropertyRNA *cprop) RNA_def_property_srna(cprop, "BlendDataProbes"); srna = RNA_def_struct(brna, "BlendDataProbes", NULL); RNA_def_struct_sdna(srna, "Main"); - RNA_def_struct_ui_text(srna, "Main Probes", "Collection of probes"); + RNA_def_struct_ui_text(srna, "Main Light Probes", "Collection of light probes"); - func = RNA_def_function(srna, "new", "rna_Main_probe_new"); + func = RNA_def_function(srna, "new", "rna_Main_lightprobe_new"); RNA_def_function_ui_description(func, "Add a new probe to the main database"); parm = RNA_def_string(func, "name", "Probe", 0, "", "New name for the data-block"); RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); /* return type */ - parm = RNA_def_pointer(func, "probe", "Probe", "", "New probe data-block"); + parm = RNA_def_pointer(func, "lightprobe", "LightProbe", "", "New light probe data-block"); RNA_def_function_return(func, parm); func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); RNA_def_function_flag(func, FUNC_USE_REPORTS); RNA_def_function_ui_description(func, "Remove a probe from the current blendfile"); - parm = RNA_def_pointer(func, "probe", "Probe", "", "Probe to remove"); + parm = RNA_def_pointer(func, "lightprobe", "LightProbe", "", "Probe to remove"); RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of this probe before deleting it " - "(WARNING: will also delete objects instancing that probe data)"); + "(WARNING: will also delete objects instancing that light probe data)"); - func = RNA_def_function(srna, "tag", "rna_Main_probes_tag"); + func = RNA_def_function(srna, "tag", "rna_Main_lightprobes_tag"); parm = RNA_def_boolean(func, "value", 0, "Value", ""); RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); RNA_def_property_clear_flag(prop, PROP_EDITABLE); - RNA_def_property_boolean_funcs(prop, "rna_Main_probes_is_updated_get", NULL); + RNA_def_property_boolean_funcs(prop, "rna_Main_lightprobes_is_updated_get", NULL); } #endif |