Commit: 65bc9313067426b12580ce53aa6d77d42c7d200f
Author: Campbell Barton
Date: Thu Dec 20 08:01:39 2018 +1100
Branches: blender2.8
https://developer.blender.org/rB65bc9313067426b12580ce53aa6d77d42c7d200f
Cleanup: argument wrapping indentation
===================================================================
M source/blender/blenkernel/intern/scene.c
M source/blender/blenkernel/intern/softbody.c
M source/blender/blenloader/intern/versioning_280.c
M source/blender/blenloader/intern/versioning_defaults.c
M source/blender/collada/BCAnimationCurve.cpp
M source/blender/collada/ControllerExporter.cpp
M source/blender/draw/engines/gpencil/gpencil_draw_utils.c
M source/blender/draw/engines/gpencil/gpencil_engine.c
M source/blender/editors/gpencil/gpencil_primitive.c
M source/blender/editors/gpencil/gpencil_utils.c
M source/blender/editors/io/io_collada.c
M source/blender/editors/object/object_modifier.c
M source/blender/editors/uvedit/uvedit_smart_stitch.c
M source/blender/python/intern/bpy_props.c
===================================================================
diff --git a/source/blender/blenkernel/intern/scene.c
b/source/blender/blenkernel/intern/scene.c
index 05603efb2c3..00c80a5c8c1 100644
--- a/source/blender/blenkernel/intern/scene.c
+++ b/source/blender/blenkernel/intern/scene.c
@@ -699,18 +699,20 @@ void BKE_scene_init(Scene *sce)
sce->toolsettings->gp_sculpt.cur_falloff = curvemapping_add(1, 0.0f,
0.0f, 1.0f, 1.0f);
CurveMapping *gp_falloff_curve =
sce->toolsettings->gp_sculpt.cur_falloff;
curvemapping_initialize(gp_falloff_curve);
- curvemap_reset(gp_falloff_curve->cm,
- &gp_falloff_curve->clipr,
- CURVE_PRESET_GAUSS,
- CURVEMAP_SLOPE_POSITIVE);
+ curvemap_reset(
+ gp_falloff_curve->cm,
+ &gp_falloff_curve->clipr,
+ CURVE_PRESET_GAUSS,
+ CURVEMAP_SLOPE_POSITIVE);
sce->toolsettings->gp_sculpt.cur_primitive = curvemapping_add(1, 0.0f,
0.0f, 1.0f, 1.0f);
CurveMapping *gp_primitive_curve =
sce->toolsettings->gp_sculpt.cur_primitive;
curvemapping_initialize(gp_primitive_curve);
- curvemap_reset(gp_primitive_curve->cm,
- &gp_primitive_curve->clipr,
- CURVE_PRESET_BELL,
- CURVEMAP_SLOPE_POSITIVE);
+ curvemap_reset(
+ gp_primitive_curve->cm,
+ &gp_primitive_curve->clipr,
+ CURVE_PRESET_BELL,
+ CURVEMAP_SLOPE_POSITIVE);
sce->physics_settings.gravity[0] = 0.0f;
sce->physics_settings.gravity[1] = 0.0f;
diff --git a/source/blender/blenkernel/intern/softbody.c
b/source/blender/blenkernel/intern/softbody.c
index 2707e4eebd7..87687e33f8f 100644
--- a/source/blender/blenkernel/intern/softbody.c
+++ b/source/blender/blenkernel/intern/softbody.c
@@ -875,8 +875,9 @@ static void free_scratch(SoftBody *sb)
if (sb->scratch) {
/* todo make sure everything is cleaned up nicly */
if (sb->scratch->colliderhash) {
- BLI_ghash_free(sb->scratch->colliderhash, NULL,
- (GHashValFreeFP) ccd_mesh_free); /*this
hoepfully will free all caches*/
+ BLI_ghash_free(
+ sb->scratch->colliderhash, NULL,
+ (GHashValFreeFP) ccd_mesh_free); /*this
hoepfully will free all caches*/
sb->scratch->colliderhash = NULL;
}
if (sb->scratch->bodyface) {
diff --git a/source/blender/blenloader/intern/versioning_280.c
b/source/blender/blenloader/intern/versioning_280.c
index 9b3add62722..1529e6693fb 100644
--- a/source/blender/blenloader/intern/versioning_280.c
+++ b/source/blender/blenloader/intern/versioning_280.c
@@ -2511,10 +2511,11 @@ void blo_do_versions_280(FileData *fd, Library
*UNUSED(lib), Main *bmain)
if ((gset) && (gset->cur_primitive == NULL)) {
gset->cur_primitive =
curvemapping_add(1, 0.0f, 0.0f, 1.0f, 1.0f);
curvemapping_initialize(gset->cur_primitive);
- curvemap_reset(gset->cur_primitive->cm,
- &gset->cur_primitive->clipr,
- CURVE_PRESET_BELL,
- CURVEMAP_SLOPE_POSITIVE);
+ curvemap_reset(
+ gset->cur_primitive->cm,
+ &gset->cur_primitive->clipr,
+ CURVE_PRESET_BELL,
+ CURVEMAP_SLOPE_POSITIVE);
}
}
}
diff --git a/source/blender/blenloader/intern/versioning_defaults.c
b/source/blender/blenloader/intern/versioning_defaults.c
index b8d2ef93c68..f464769452a 100644
--- a/source/blender/blenloader/intern/versioning_defaults.c
+++ b/source/blender/blenloader/intern/versioning_defaults.c
@@ -195,29 +195,32 @@ void BLO_update_defaults_startup_blend(Main *bmain, const
char *app_template)
ts->gp_sculpt.cur_falloff = curvemapping_add(1,
0.0f, 0.0f, 1.0f, 1.0f);
CurveMapping *gp_falloff_curve =
ts->gp_sculpt.cur_falloff;
curvemapping_initialize(gp_falloff_curve);
- curvemap_reset(gp_falloff_curve->cm,
- &gp_falloff_curve->clipr,
- CURVE_PRESET_GAUSS,
- CURVEMAP_SLOPE_POSITIVE);
+ curvemap_reset(
+ gp_falloff_curve->cm,
+ &gp_falloff_curve->clipr,
+ CURVE_PRESET_GAUSS,
+ CURVEMAP_SLOPE_POSITIVE);
}
if (ts->gp_sculpt.cur_primitive == NULL) {
ts->gp_sculpt.cur_primitive =
curvemapping_add(1, 0.0f, 0.0f, 1.0f, 1.0f);
CurveMapping *gp_primitive_curve =
ts->gp_sculpt.cur_primitive;
curvemapping_initialize(gp_primitive_curve);
- curvemap_reset(gp_primitive_curve->cm,
- &gp_primitive_curve->clipr,
- CURVE_PRESET_BELL,
- CURVEMAP_SLOPE_POSITIVE);
+ curvemap_reset(
+ gp_primitive_curve->cm,
+ &gp_primitive_curve->clipr,
+ CURVE_PRESET_BELL,
+ CURVEMAP_SLOPE_POSITIVE);
}
}
}
/* For all builtin templates shipped with Blender. */
- bool builtin_template = !app_template ||
- STREQ(app_template, "2D_Animation") ||
- STREQ(app_template, "Sculpting") ||
- STREQ(app_template, "VFX") ||
- STREQ(app_template, "Video_Editing");
+ bool builtin_template = (
+ !app_template ||
+ STREQ(app_template, "2D_Animation") ||
+ STREQ(app_template, "Sculpting") ||
+ STREQ(app_template, "VFX") ||
+ STREQ(app_template, "Video_Editing"));
if (builtin_template) {
/* Clear all tools to use default options instead, ignore the
tool saved in the file. */
diff --git a/source/blender/collada/BCAnimationCurve.cpp
b/source/blender/collada/BCAnimationCurve.cpp
index 74d852ae980..97a9c8b75ef 100644
--- a/source/blender/collada/BCAnimationCurve.cpp
+++ b/source/blender/collada/BCAnimationCurve.cpp
@@ -386,10 +386,10 @@ void BCAnimationCurve::add_value(const float val, const
int frame_index)
FCurve *fcu = get_edit_fcurve();
fcu->auto_smoothing = FCURVE_SMOOTH_CONT_ACCEL;
insert_vert_fcurve(
- fcu,
- frame_index, val,
- BEZT_KEYTYPE_KEYFRAME,
- INSERTKEY_NOFLAGS);
+ fcu,
+ frame_index, val,
+ BEZT_KEYTYPE_KEYFRAME,
+ INSERTKEY_NOFLAGS);
if (fcu->totvert == 1) {
init_range(val);
diff --git a/source/blender/collada/ControllerExporter.cpp
b/source/blender/collada/ControllerExporter.cpp
index 5ec199f086b..61718e405c1 100644
--- a/source/blender/collada/ControllerExporter.cpp
+++ b/source/blender/collada/ControllerExporter.cpp
@@ -196,11 +196,11 @@ void ControllerExporter::export_skin_controller(Object
*ob, Object *ob_arm)
}
me = bc_get_mesh_copy(
- blender_context,
- ob,
- this->export_settings->export_mesh_type,
- this->export_settings->apply_modifiers,
- this->export_settings->triangulate);
+ blender_context,
+ ob,
+ this->export_settings->export_mesh_type,
+ this->export_settings->apply_modifiers,
+ this->export_settings->triangulate);
std::string controller_name = id_name(ob_arm);
std::string controller_id = get_controller_id(ob_arm, ob);
diff --git a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
index 32bf80d4757..a6ef5d6a45a 100644
--- a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
+++ b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
@@ -97,8 +97,8 @@ static void gpencil_calc_vertex(
/* verify time modifiers */
if ((time_remap) && (!stl->storage->simplify_modif)) {
int remap_cfra = BKE_gpencil_time_modifier(
- draw_ctx->depsgraph, draw_ctx->scene,
ob, gpl, cfra_eval,
- stl->storage->is_render);
+ draw_ctx->depsgraph, draw_ctx->scene,
ob, gpl, cfra_eval,
+ stl->storage->is_render);
init_gpf = BKE_gpencil_layer_getframe(gpl,
remap_cfra, GP_GETFRAME_USE_PREV);
}
else {
@@ -1238,9 +1238,9 @@ void DRW_gpencil_populate_buffer_strokes(GPENCIL_e_data
*e_data, void *vedata, T
if (gp_style->flag & GP_STYLE_STROKE_SHOW) {
DRW_shgroup_call_add(
-
stl->g_data->shgrps_drawing_stroke,
- e_data->batch_buffer_stroke,
- stl->storage->unit_matrix);
+
stl->g_data->shgrps_drawing_stroke,
+ e_data->batch_buffer_stroke,
+ stl->storage->unit_matrix);
}
if ((gpd->runtime.sbuffer_size >= 3) &&
@@ -1265,9 +1265,9 @@ void DRW_gpencil_populate_buffer_strokes(GPENCIL_e_data
*e_data, void *vedata, T
e_data->batch_buffer_fill =
DRW_gpencil_get_buffer_fill_geom(gpd);
DRW_shgroup_call_add(
-
stl->g_data->shgrps_drawing_fill,
- e_data->batch_buffer_fill,
- stl->storage->unit_matrix);
+
stl->g_data->shgrps_drawing_fill,
+ e_data->batch_buffer_fill,
+ stl->storage->unit_matrix);
stl->storage->buffer_fill = true;
}
stl->storage->buffer_stroke = true;
@@ -1297,9 +1297,9 @@ void DRW_gpencil_populate_buffer_strokes(GPENCIL_e_data
*e_data, void *vedata, T
e_data->batch_buffer_ctrlpoint =
DRW_gpencil_get_buffer_ctrlpoint_geom(gpd);
DRW_shgroup_call_add(
- shgrp,
- e_data->batch_buffer_ctrlpoint,
- stl->storage->unit_matrix);
+ shgrp,
+ e_data->batch_buffer_ctrlpoint,
+ stl->storage->unit_matrix);
stl->storage->buffer_ctrlpoint = true;
}
@@ -1438,10 +1438,10 @@ static void DRW_gpencil_shgroups_create(
const int len = elm->vertex_idx -
start_edit;
/* use always the same group */
DRW_shgroup_call_range_add(
- stl->g_data->shgrps_edit_point,
- cache->b_edit.batch,
- (!cache_ob->is_dup_ob) ?
gpf->runtime.viewmatrix : cache_ob->obmat,
- start_edit, len);
+ stl->g_data->shgrps_edit_point,
+ cache->b_edit.batch,
+ (!cache_ob->is_dup_ob) ?
gpf->runtime.viewmatrix : cache_ob->obmat,
+ start_edit, len);
start_edit = elm->vertex_idx;
}
@@ -1453,10 +1453,10 @@ static void DRW_gpencil_shgroups_create(
const int len = elm->vertex_idx -
start_edlin;
/* use always the same group */
DRW_shgroup_call_range_add(
- stl->g_data->shgrps_edit_line,
- cache->b_edlin.batch,
- (!cache_ob->is_dup_ob) ?
gpf->runtime.viewmatrix : cache_ob->obmat,
- start_edlin, len);
+ stl->g_data->shgrps_edit_line,
+ cache->b_edlin.batch,
+ (!cache_ob->is_dup_ob) ?
gpf->runtime.viewmatrix : cache_ob->obmat,
+ start_edlin, len);
start_edlin = elm->vertex_idx;
}
diff --git a/source/blender/draw/engines/gpencil/gpencil_engine.c
b/source/blender
@@ Diff output truncated at 10240 characters. @@
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs