Cleanup: naming for BKE_fluid particle functions
Create/Destroy are more commonly paired terms in BLI/BKE API's.
This commit is contained in:
@@ -58,12 +58,12 @@ void BKE_fluid_cache_free(struct FluidDomainSettings *mds, struct Object *ob, in
|
||||
float BKE_fluid_get_velocity_at(struct Object *ob, float position[3], float velocity[3]);
|
||||
int BKE_fluid_get_data_flags(struct FluidDomainSettings *mds);
|
||||
|
||||
void BKE_fluid_create_particle_system(struct Main *bmain,
|
||||
void BKE_fluid_particle_system_create(struct Main *bmain,
|
||||
struct Object *ob,
|
||||
const char *pset_name,
|
||||
const char *parts_name,
|
||||
const char *psys_name,
|
||||
const int psys_type);
|
||||
void BKE_fluid_delete_particle_system(struct Object *ob, const int particle_type);
|
||||
void BKE_fluid_particle_system_destroy(struct Object *ob, const int particle_type);
|
||||
|
||||
#endif /* __BKE_FLUID_H__ */
|
||||
|
||||
@@ -4754,7 +4754,7 @@ int BKE_fluid_get_data_flags(FluidDomainSettings *mds)
|
||||
return flags;
|
||||
}
|
||||
|
||||
void BKE_fluid_create_particle_system(struct Main *bmain,
|
||||
void BKE_fluid_particle_system_create(struct Main *bmain,
|
||||
struct Object *ob,
|
||||
const char *pset_name,
|
||||
const char *parts_name,
|
||||
@@ -4786,7 +4786,7 @@ void BKE_fluid_create_particle_system(struct Main *bmain,
|
||||
modifier_unique_name(&ob->modifiers, (ModifierData *)pmmd);
|
||||
}
|
||||
|
||||
void BKE_fluid_delete_particle_system(struct Object *ob, const int particle_type)
|
||||
void BKE_fluid_particle_system_destroy(struct Object *ob, const int particle_type)
|
||||
{
|
||||
ParticleSystemModifierData *pmmd;
|
||||
ParticleSystem *psys, *next_psys;
|
||||
|
||||
@@ -126,7 +126,7 @@ static void rna_Fluid_parts_create(Main *bmain,
|
||||
UNUSED_VARS(bmain, ptr, pset_name, parts_name, psys_name, psys_type);
|
||||
# else
|
||||
Object *ob = (Object *)ptr->owner_id;
|
||||
BKE_fluid_create_particle_system(bmain, ob, pset_name, parts_name, psys_name, psys_type);
|
||||
BKE_fluid_particle_system_create(bmain, ob, pset_name, parts_name, psys_name, psys_type);
|
||||
# endif
|
||||
}
|
||||
|
||||
@@ -136,7 +136,7 @@ static void rna_Fluid_parts_delete(PointerRNA *ptr, int ptype)
|
||||
UNUSED_VARS(ptr, ptype);
|
||||
# else
|
||||
Object *ob = (Object *)ptr->owner_id;
|
||||
BKE_fluid_delete_particle_system(ob, ptype);
|
||||
BKE_fluid_particle_system_destroy(ob, ptype);
|
||||
# endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user