cleanup: use 'coords' abbreviation for functions.
authorCampbell Barton <ideasman42@gmail.com>
Sun, 4 Jan 2015 03:20:31 +0000 (14:20 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 4 Jan 2015 03:21:16 +0000 (14:21 +1100)
source/blender/blenkernel/BKE_brush.h
source/blender/blenkernel/BKE_particle.h
source/blender/blenkernel/intern/brush.c
source/blender/blenkernel/intern/particle_system.c
source/blender/editors/sculpt_paint/paint_stroke.c
source/blender/modifiers/intern/MOD_explode.c

index 42379c02e89ffb25e989d814e06eff07a78801eb..49975fa0276fc91bdac65a936f2b2ec309e5239a 100644 (file)
@@ -62,7 +62,7 @@ int BKE_brush_clone_image_delete(struct Brush *brush);
 /* jitter */
 void BKE_brush_jitter_pos(const struct Scene *scene, struct Brush *brush,
                           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 */
 void BKE_brush_curve_preset(struct Brush *b, int preset);
index 204fbbf5bfc312709ed7c96380cd087dfb6d1c2e..39cf550538294fb1ae96d36fab8219a8ad78a0cb 100644 (file)
@@ -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_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);
 
index 0a57dc5c9452e4510f5c52cfd14efab06b325501..7c1915ea2252e4837840cabccb154130ca39e88c 100644 (file)
@@ -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;
 }
 
-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
         * texture sampling functions */
index 7ad99c145654ce9d2081127be4afb6d4f83a5f5c..3705fb11125a6020d1e3cb4d7a3a9f37ba324784 100644 (file)
@@ -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;
        ParticleSystem *psys = sim->psys;
@@ -2002,7 +2002,7 @@ void reset_particle(ParticleSimulationData *sim, ParticleData *pa, float dtime,
                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.
         *
index 02a28932ea543fd7f62ab9d2917ba61d7f85ddfa..bb875d2ef0021098073dc93e50cad9bc769d9418 100644 (file)
@@ -263,7 +263,7 @@ static bool paint_brush_update(bContext *C,
                }
 
                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 {
                        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 */
                if (brush->mask_mtex.tex) {
                        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 {
                                copy_v2_v2(ups->mask_tex_mouse, mouse);
                        }
index 86e9dc7dc2596cf42824994ef3987d994d4a2270..32a6303d19d24ce20cbf3fa10d8c23c45835e739 100644 (file)
@@ -891,7 +891,7 @@ static DerivedMesh *explodeMesh(ExplodeModifierData *emd,
                        /* get particle */
                        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;
                        psys_get_particle_state(&sim, ed_v2, &state, 1);