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_mdd.c
parentf197134426f3e416bfc1aea4ff706d654d555f1d (diff)
Cleanup: modifier arg wrapping
Diffstat (limited to 'source/blender/modifiers/intern/MOD_meshcache_mdd.c')
-rw-r--r--source/blender/modifiers/intern/MOD_meshcache_mdd.c56
1 files changed, 31 insertions, 25 deletions
diff --git a/source/blender/modifiers/intern/MOD_meshcache_mdd.c b/source/blender/modifiers/intern/MOD_meshcache_mdd.c
index 3dd3a5fc598..f0278c409e5 100644
--- a/source/blender/modifiers/intern/MOD_meshcache_mdd.c
+++ b/source/blender/modifiers/intern/MOD_meshcache_mdd.c
@@ -48,9 +48,10 @@ typedef struct MDDHead {
int verts_tot;
} MDDHead; /* frames, verts */
-static bool meshcache_read_mdd_head(FILE *fp, const int verts_tot,
- MDDHead *mdd_head,
- const char **err_str)
+static bool meshcache_read_mdd_head(
+ FILE *fp, const int verts_tot,
+ MDDHead *mdd_head,
+ const char **err_str)
{
if (!fread(mdd_head, sizeof(*mdd_head), 1, fp)) {
*err_str = "Missing header";
@@ -78,11 +79,12 @@ static bool meshcache_read_mdd_head(FILE *fp, const int verts_tot,
/**
* Gets the index frange and factor
*/
-static bool meshcache_read_mdd_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_mdd_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)
{
MDDHead mdd_head;
@@ -97,11 +99,12 @@ static bool meshcache_read_mdd_range(FILE *fp,
return true;
}
-static bool meshcache_read_mdd_range_from_time(FILE *fp,
- const int verts_tot,
- const float time, const float UNUSED(fps),
- float *r_frame,
- const char **err_str)
+static bool meshcache_read_mdd_range_from_time(
+ FILE *fp,
+ const int verts_tot,
+ const float time, const float UNUSED(fps),
+ float *r_frame,
+ const char **err_str)
{
MDDHead mdd_head;
int i;
@@ -144,10 +147,11 @@ static bool meshcache_read_mdd_range_from_time(FILE *fp,
return true;
}
-bool MOD_meshcache_read_mdd_index(FILE *fp,
- float (*vertexCos)[3], const int verts_tot,
- const int index, const float factor,
- const char **err_str)
+bool MOD_meshcache_read_mdd_index(
+ FILE *fp,
+ float (*vertexCos)[3], const int verts_tot,
+ const int index, const float factor,
+ const char **err_str)
{
MDDHead mdd_head;
@@ -212,10 +216,11 @@ bool MOD_meshcache_read_mdd_index(FILE *fp,
return true;
}
-bool MOD_meshcache_read_mdd_frame(FILE *fp,
- float (*vertexCos)[3], const int verts_tot, const char interp,
- const float frame,
- const char **err_str)
+bool MOD_meshcache_read_mdd_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;
@@ -253,10 +258,11 @@ bool MOD_meshcache_read_mdd_frame(FILE *fp,
}
}
-bool MOD_meshcache_read_mdd_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_mdd_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;