Cleanup: rename lightprobe configure to type_set

Consistent with similar API functions.
This commit is contained in:
Campbell Barton 2020-01-20 17:54:38 +11:00
parent 9b70950e3c
commit 3fb8191d1d
4 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@ struct LightProbe;
struct Main;
void BKE_lightprobe_init(struct LightProbe *probe);
void BKE_lightprobe_configure(struct LightProbe *probe, const short lightprobe_type);
void BKE_lightprobe_type_set(struct LightProbe *probe, const short lightprobe_type);
void *BKE_lightprobe_add(struct Main *bmain, const char *name);
void BKE_lightprobe_copy_data(struct Main *bmain,
struct LightProbe *probe_dst,

View File

@ -41,7 +41,7 @@ void BKE_lightprobe_init(LightProbe *probe)
MEMCPY_STRUCT_AFTER(probe, DNA_struct_default_get(LightProbe), id);
}
void BKE_lightprobe_configure(LightProbe *probe, const short lightprobe_type)
void BKE_lightprobe_type_set(LightProbe *probe, const short lightprobe_type)
{
probe->type = lightprobe_type;

View File

@ -604,7 +604,7 @@ static int lightprobe_add_exec(bContext *C, wmOperator *op)
probe = (LightProbe *)ob->data;
BKE_lightprobe_configure(probe, type);
BKE_lightprobe_type_set(probe, type);
DEG_relations_tag_update(CTX_data_main(C));

View File

@ -675,7 +675,7 @@ static LightProbe *rna_Main_lightprobe_new(Main *bmain, const char *name, int ty
LightProbe *probe = BKE_lightprobe_add(bmain, safe_name);
BKE_lightprobe_configure(probe, type);
BKE_lightprobe_type_set(probe, type);
id_us_min(&probe->id);
return probe;