cleanup: use 'coords' abbreviation for functions.
This commit is contained in:
@@ -62,7 +62,7 @@ int BKE_brush_clone_image_delete(struct Brush *brush);
|
|||||||
/* jitter */
|
/* jitter */
|
||||||
void BKE_brush_jitter_pos(const struct Scene *scene, struct Brush *brush,
|
void BKE_brush_jitter_pos(const struct Scene *scene, struct Brush *brush,
|
||||||
const float pos[2], float jitterpos[2]);
|
const float pos[2], float jitterpos[2]);
|
||||||
void BKE_brush_randomize_texture_coordinates(struct UnifiedPaintSettings *ups, bool mask);
|
void BKE_brush_randomize_texture_coords(struct UnifiedPaintSettings *ups, bool mask);
|
||||||
|
|
||||||
/* brush curve */
|
/* brush curve */
|
||||||
void BKE_brush_curve_preset(struct Brush *b, int preset);
|
void BKE_brush_curve_preset(struct Brush *b, int preset);
|
||||||
|
|||||||
@@ -364,7 +364,7 @@ void psys_get_pointcache_start_end(struct Scene *scene, ParticleSystem *psys, in
|
|||||||
|
|
||||||
void psys_check_boid_data(struct ParticleSystem *psys);
|
void psys_check_boid_data(struct ParticleSystem *psys);
|
||||||
|
|
||||||
void psys_get_birth_coordinates(struct ParticleSimulationData *sim, struct ParticleData *pa, struct ParticleKey *state, float dtime, float cfra);
|
void psys_get_birth_coords(struct ParticleSimulationData *sim, struct ParticleData *pa, struct ParticleKey *state, float dtime, float cfra);
|
||||||
|
|
||||||
void particle_system_update(struct Scene *scene, struct Object *ob, struct ParticleSystem *psys);
|
void particle_system_update(struct Scene *scene, struct Object *ob, struct ParticleSystem *psys);
|
||||||
|
|
||||||
|
|||||||
@@ -949,7 +949,7 @@ void BKE_brush_jitter_pos(const Scene *scene, Brush *brush, const float pos[2],
|
|||||||
jitterpos[1] = pos[1] + 2 * rand_pos[1] * diameter * spread;
|
jitterpos[1] = pos[1] + 2 * rand_pos[1] * diameter * spread;
|
||||||
}
|
}
|
||||||
|
|
||||||
void BKE_brush_randomize_texture_coordinates(UnifiedPaintSettings *ups, bool mask)
|
void BKE_brush_randomize_texture_coords(UnifiedPaintSettings *ups, bool mask)
|
||||||
{
|
{
|
||||||
/* we multiply with brush radius as an optimization for the brush
|
/* we multiply with brush radius as an optimization for the brush
|
||||||
* texture sampling functions */
|
* texture sampling functions */
|
||||||
|
|||||||
@@ -1670,7 +1670,7 @@ static void get_angular_velocity_vector(short avemode, ParticleKey *state, float
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void psys_get_birth_coordinates(ParticleSimulationData *sim, ParticleData *pa, ParticleKey *state, float dtime, float cfra)
|
void psys_get_birth_coords(ParticleSimulationData *sim, ParticleData *pa, ParticleKey *state, float dtime, float cfra)
|
||||||
{
|
{
|
||||||
Object *ob = sim->ob;
|
Object *ob = sim->ob;
|
||||||
ParticleSystem *psys = sim->psys;
|
ParticleSystem *psys = sim->psys;
|
||||||
@@ -2002,7 +2002,7 @@ void reset_particle(ParticleSimulationData *sim, ParticleData *pa, float dtime,
|
|||||||
psys->flag |= PSYS_OB_ANIM_RESTORE;
|
psys->flag |= PSYS_OB_ANIM_RESTORE;
|
||||||
}
|
}
|
||||||
|
|
||||||
psys_get_birth_coordinates(sim, pa, &pa->state, dtime, cfra);
|
psys_get_birth_coords(sim, pa, &pa->state, dtime, cfra);
|
||||||
|
|
||||||
/* Initialize particle settings which depends on texture.
|
/* Initialize particle settings which depends on texture.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -263,7 +263,7 @@ static bool paint_brush_update(bContext *C,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (brush->mtex.brush_map_mode == MTEX_MAP_MODE_RANDOM)
|
if (brush->mtex.brush_map_mode == MTEX_MAP_MODE_RANDOM)
|
||||||
BKE_brush_randomize_texture_coordinates(ups, false);
|
BKE_brush_randomize_texture_coords(ups, false);
|
||||||
else {
|
else {
|
||||||
copy_v2_v2(ups->tex_mouse, mouse);
|
copy_v2_v2(ups->tex_mouse, mouse);
|
||||||
}
|
}
|
||||||
@@ -271,7 +271,7 @@ static bool paint_brush_update(bContext *C,
|
|||||||
/* take care of mask texture, if any */
|
/* take care of mask texture, if any */
|
||||||
if (brush->mask_mtex.tex) {
|
if (brush->mask_mtex.tex) {
|
||||||
if (brush->mask_mtex.brush_map_mode == MTEX_MAP_MODE_RANDOM)
|
if (brush->mask_mtex.brush_map_mode == MTEX_MAP_MODE_RANDOM)
|
||||||
BKE_brush_randomize_texture_coordinates(ups, true);
|
BKE_brush_randomize_texture_coords(ups, true);
|
||||||
else {
|
else {
|
||||||
copy_v2_v2(ups->mask_tex_mouse, mouse);
|
copy_v2_v2(ups->mask_tex_mouse, mouse);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -891,7 +891,7 @@ static DerivedMesh *explodeMesh(ExplodeModifierData *emd,
|
|||||||
/* get particle */
|
/* get particle */
|
||||||
pa = pars + ed_v2;
|
pa = pars + ed_v2;
|
||||||
|
|
||||||
psys_get_birth_coordinates(&sim, pa, &birth, 0, 0);
|
psys_get_birth_coords(&sim, pa, &birth, 0, 0);
|
||||||
|
|
||||||
state.time = cfra;
|
state.time = cfra;
|
||||||
psys_get_particle_state(&sim, ed_v2, &state, 1);
|
psys_get_particle_state(&sim, ed_v2, &state, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user