diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-12-17 04:17:57 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-12-17 04:17:57 +0300 |
commit | db043e7e5b4cd2a6feedc70ef9267fc0bf54d78e (patch) | |
tree | ada6ccd0061eb9e06b69d0d8e22289db55c641aa | |
parent | f7745b15b7f6a4cee760820d00c5fde913a4caf8 (diff) |
Cleanup: naming for BKE_fluid particle functions
Create/Destroy are more commonly paired terms in BLI/BKE API's.
-rw-r--r-- | source/blender/blenkernel/BKE_fluid.h | 4 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/fluid.c | 4 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_fluid.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/blenkernel/BKE_fluid.h b/source/blender/blenkernel/BKE_fluid.h index 6c182994890..3e389cfec58 100644 --- a/source/blender/blenkernel/BKE_fluid.h +++ b/source/blender/blenkernel/BKE_fluid.h @@ -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__ */ diff --git a/source/blender/blenkernel/intern/fluid.c b/source/blender/blenkernel/intern/fluid.c index a11a713c617..284799fa17f 100644 --- a/source/blender/blenkernel/intern/fluid.c +++ b/source/blender/blenkernel/intern/fluid.c @@ -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; diff --git a/source/blender/makesrna/intern/rna_fluid.c b/source/blender/makesrna/intern/rna_fluid.c index 11897ab5e2a..d879d5cc315 100644 --- a/source/blender/makesrna/intern/rna_fluid.c +++ b/source/blender/makesrna/intern/rna_fluid.c @@ -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 } |