Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-05-12 09:04:56 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-05-12 09:04:56 +0300
commitc84b8d480196a8c1d18a46c3e704dc9ce88f5c8b (patch)
treeeedc5777863e875ef3a109ee66b6345443b86647 /source/blender/modifiers/intern/MOD_meshcache_pc2.c
parentf197134426f3e416bfc1aea4ff706d654d555f1d (diff)
Cleanup: modifier arg wrapping
Diffstat (limited to 'source/blender/modifiers/intern/MOD_meshcache_pc2.c')
-rw-r--r--source/blender/modifiers/intern/MOD_meshcache_pc2.c56
1 files changed, 31 insertions, 25 deletions
diff --git a/source/blender/modifiers/intern/MOD_meshcache_pc2.c b/source/blender/modifiers/intern/MOD_meshcache_pc2.c
index 4b2b3f17d18..3503ce3ef7a 100644
--- a/source/blender/modifiers/intern/MOD_meshcache_pc2.c
+++ b/source/blender/modifiers/intern/MOD_meshcache_pc2.c
@@ -52,9 +52,10 @@ typedef struct PC2Head {
int frame_tot;
} PC2Head; /* frames, verts */
-static bool meshcache_read_pc2_head(FILE *fp, const int verts_tot,
- PC2Head *pc2_head,
- const char **err_str)
+static bool meshcache_read_pc2_head(
+ FILE *fp, const int verts_tot,
+ PC2Head *pc2_head,
+ const char **err_str)
{
if (!fread(pc2_head, sizeof(*pc2_head), 1, fp)) {
*err_str = "Missing header";
@@ -90,11 +91,12 @@ static bool meshcache_read_pc2_head(FILE *fp, const int verts_tot,
*
* currently same as for MDD
*/
-static bool meshcache_read_pc2_range(FILE *fp,
- const int verts_tot,
- const float frame, const char interp,
- int r_index_range[2], float *r_factor,
- const char **err_str)
+static bool meshcache_read_pc2_range(
+ FILE *fp,
+ const int verts_tot,
+ const float frame, const char interp,
+ int r_index_range[2], float *r_factor,
+ const char **err_str)
{
PC2Head pc2_head;
@@ -109,11 +111,12 @@ static bool meshcache_read_pc2_range(FILE *fp,
return true;
}
-static bool meshcache_read_pc2_range_from_time(FILE *fp,
- const int verts_tot,
- const float time, const float fps,
- float *r_frame,
- const char **err_str)
+static bool meshcache_read_pc2_range_from_time(
+ FILE *fp,
+ const int verts_tot,
+ const float time, const float fps,
+ float *r_frame,
+ const char **err_str)
{
PC2Head pc2_head;
float frame;
@@ -135,10 +138,11 @@ static bool meshcache_read_pc2_range_from_time(FILE *fp,
return true;
}
-bool MOD_meshcache_read_pc2_index(FILE *fp,
- float (*vertexCos)[3], const int verts_tot,
- const int index, const float factor,
- const char **err_str)
+bool MOD_meshcache_read_pc2_index(
+ FILE *fp,
+ float (*vertexCos)[3], const int verts_tot,
+ const int index, const float factor,
+ const char **err_str)
{
PC2Head pc2_head;
@@ -188,10 +192,11 @@ bool MOD_meshcache_read_pc2_index(FILE *fp,
}
-bool MOD_meshcache_read_pc2_frame(FILE *fp,
- float (*vertexCos)[3], const int verts_tot, const char interp,
- const float frame,
- const char **err_str)
+bool MOD_meshcache_read_pc2_frame(
+ FILE *fp,
+ float (*vertexCos)[3], const int verts_tot, const char interp,
+ const float frame,
+ const char **err_str)
{
int index_range[2];
float factor;
@@ -229,10 +234,11 @@ bool MOD_meshcache_read_pc2_frame(FILE *fp,
}
}
-bool MOD_meshcache_read_pc2_times(const char *filepath,
- float (*vertexCos)[3], const int verts_tot, const char interp,
- const float time, const float fps, const char time_mode,
- const char **err_str)
+bool MOD_meshcache_read_pc2_times(
+ const char *filepath,
+ float (*vertexCos)[3], const int verts_tot, const char interp,
+ const float time, const float fps, const char time_mode,
+ const char **err_str)
{
float frame;