forked from bartvdbraak/blender
Code cleanup: indentation
This commit is contained in:
parent
33df6aa12e
commit
5cc1e03540
@ -41,8 +41,9 @@ struct Mesh;
|
||||
|
||||
/* crazyspace.c */
|
||||
float (*BKE_crazyspace_get_mapped_editverts(struct Scene *scene, struct Object *obedit))[3];
|
||||
void BKE_crazyspace_set_quats_editmesh(struct BMEditMesh *em, float (*origcos)[3], float (*mappedcos)[3], float (*quats)[4],
|
||||
const bool use_select);
|
||||
void BKE_crazyspace_set_quats_editmesh(
|
||||
struct BMEditMesh *em, float (*origcos)[3], float (*mappedcos)[3], float (*quats)[4],
|
||||
const bool use_select);
|
||||
void BKE_crazyspace_set_quats_mesh(struct Mesh *me, float (*origcos)[3], float (*mappedcos)[3], float (*quats)[4]);
|
||||
int BKE_sculpt_get_first_deform_matrices(struct Scene *scene, struct Object *ob, float (**deformmats)[3][3], float (**deformcos)[3]);
|
||||
void BKE_crazyspace_build_sculpt(struct Scene *scene, struct Object *ob, float (**deformmats)[3][3], float (**deformcos)[3]);
|
||||
|
@ -178,10 +178,10 @@ void BKE_free_sculptsession_deformMats(struct SculptSession *ss);
|
||||
void BKE_sculptsession_bm_to_me(struct Object *ob, bool reorder);
|
||||
void BKE_sculptsession_bm_to_me_for_render(struct Object *object);
|
||||
void BKE_sculpt_update_mesh_elements(struct Scene *scene, struct Sculpt *sd, struct Object *ob,
|
||||
bool need_pmap, bool need_mask);
|
||||
bool need_pmap, bool need_mask);
|
||||
struct MultiresModifierData *BKE_sculpt_multires_active(struct Scene *scene, struct Object *ob);
|
||||
int BKE_sculpt_mask_layers_ensure(struct Object *ob,
|
||||
struct MultiresModifierData *mmd);
|
||||
struct MultiresModifierData *mmd);
|
||||
|
||||
enum {
|
||||
SCULPT_MASK_LAYER_CALC_VERT = (1 << 0),
|
||||
|
@ -491,7 +491,7 @@ static PaintOperation *texture_paint_init(bContext *C, wmOperator *op, float mou
|
||||
|
||||
settings->imapaint.flag |= IMAGEPAINT_DRAWING;
|
||||
ED_undo_paint_push_begin(UNDO_PAINT_IMAGE, op->type->name,
|
||||
ED_image_undo_restore, ED_image_undo_free);
|
||||
ED_image_undo_restore, ED_image_undo_free);
|
||||
|
||||
{
|
||||
UnifiedPaintSettings *ups = &settings->unified_paint_settings;
|
||||
|
@ -4337,7 +4337,7 @@ static int texture_paint_camera_project_exec(bContext *C, wmOperator *op)
|
||||
scene->toolsettings->imapaint.flag |= IMAGEPAINT_DRAWING;
|
||||
|
||||
ED_undo_paint_push_begin(UNDO_PAINT_IMAGE, op->type->name,
|
||||
ED_image_undo_restore, ED_image_undo_free);
|
||||
ED_image_undo_restore, ED_image_undo_free);
|
||||
|
||||
/* allocate and initialize spatial data structures */
|
||||
project_paint_begin(&ps);
|
||||
|
@ -542,7 +542,8 @@ static void sculpt_undo_free(ListBase *lb)
|
||||
}
|
||||
}
|
||||
|
||||
bool sculpt_undo_cleanup(bContext *C, ListBase *lb) {
|
||||
bool sculpt_undo_cleanup(bContext *C, ListBase *lb)
|
||||
{
|
||||
Object *ob = CTX_data_active_object(C);
|
||||
SculptUndoNode *unode;
|
||||
|
||||
@ -879,7 +880,7 @@ SculptUndoNode *sculpt_undo_push_node(Object *ob, PBVHNode *node,
|
||||
void sculpt_undo_push_begin(const char *name)
|
||||
{
|
||||
ED_undo_paint_push_begin(UNDO_PAINT_MESH, name,
|
||||
sculpt_undo_restore, sculpt_undo_free);
|
||||
sculpt_undo_restore, sculpt_undo_free);
|
||||
}
|
||||
|
||||
void sculpt_undo_push_end(void)
|
||||
|
@ -2034,7 +2034,7 @@ static int image_invert_exec(bContext *C, wmOperator *op)
|
||||
|
||||
if (support_undo) {
|
||||
ED_undo_paint_push_begin(UNDO_PAINT_IMAGE, op->type->name,
|
||||
ED_image_undo_restore, ED_image_undo_free);
|
||||
ED_image_undo_restore, ED_image_undo_free);
|
||||
/* not strictly needed, because we only imapaint_dirty_region to invalidate all tiles
|
||||
* but better do this right in case someone copies this for a tool that uses partial redraw better */
|
||||
ED_imapaint_clear_partial_redraw();
|
||||
|
@ -54,7 +54,7 @@ static EnumPropertyItem sculpt_stroke_method_items[] = {
|
||||
{BRUSH_DRAG_DOT, "DRAG_DOT", 0, "Drag Dot", "Allows a single dot to be carefully positioned"},
|
||||
{BRUSH_SPACE, "SPACE", 0, "Space", "Limit brush application to the distance specified by spacing"},
|
||||
{BRUSH_AIRBRUSH, "AIRBRUSH", 0, "Airbrush", "Keep applying paint effect while holding mouse (spray)"},
|
||||
{BRUSH_ANCHORED, "ANCHORED", 0, "Anchored", "Keep the brush anchored to the initial location"},
|
||||
{BRUSH_ANCHORED, "ANCHORED", 0, "Anchored", "Keep the brush anchored to the initial location"},
|
||||
{0, NULL, 0, NULL, NULL}
|
||||
};
|
||||
|
||||
|
@ -1660,7 +1660,7 @@ static void rna_FreestyleSettings_module_remove(ID *id, FreestyleSettings *confi
|
||||
|
||||
if (!BKE_freestyle_module_delete((FreestyleConfig *)config, module)) {
|
||||
if (module->script)
|
||||
BKE_reportf(reports, RPT_ERROR, "Style module '%s' could not be removed", module->script->id.name+2);
|
||||
BKE_reportf(reports, RPT_ERROR, "Style module '%s' could not be removed", module->script->id.name + 2);
|
||||
else
|
||||
BKE_reportf(reports, RPT_ERROR, "Style module could not be removed");
|
||||
return;
|
||||
|
@ -433,7 +433,7 @@ static void exporter_SetVert(ExportMeshData *export_data,
|
||||
dm_orig = which_dm(export_data, which_orig_mesh);
|
||||
if (dm_orig) {
|
||||
BLI_assert(orig_vert_index >= 0 && orig_vert_index < dm_orig->getNumVerts(dm_orig));
|
||||
mvert[vert_index] = which_mvert(export_data, which_orig_mesh) [orig_vert_index];
|
||||
mvert[vert_index] = which_mvert(export_data, which_orig_mesh)[orig_vert_index];
|
||||
CustomData_copy_data(&dm_orig->vertData, &dm->vertData, orig_vert_index, vert_index, 1);
|
||||
}
|
||||
|
||||
@ -467,7 +467,7 @@ static void exporter_SetEdge(ExportMeshData *export_data,
|
||||
if (dm_orig) {
|
||||
BLI_assert(orig_edge_index >= 0 && orig_edge_index < dm_orig->getNumEdges(dm_orig));
|
||||
|
||||
*medge = which_medge(export_data, which_orig_mesh) [orig_edge_index];
|
||||
*medge = which_medge(export_data, which_orig_mesh)[orig_edge_index];
|
||||
|
||||
/* Copy all edge layers, including medge. */
|
||||
CustomData_copy_data(&dm_orig->edgeData, &dm->edgeData, orig_edge_index, edge_index, 1);
|
||||
@ -556,7 +556,7 @@ static void exporter_SetPoly(ExportMeshData *export_data,
|
||||
BLI_assert(orig_poly_index >= 0 && orig_poly_index < dm_orig->getNumPolys(dm_orig));
|
||||
|
||||
/* Copy all poly layers, including mpoly. */
|
||||
*mpoly = which_mpoly(export_data, which_orig_mesh) [orig_poly_index];
|
||||
*mpoly = which_mpoly(export_data, which_orig_mesh)[orig_poly_index];
|
||||
CustomData_copy_data(&dm_orig->polyData, &dm->polyData, orig_poly_index, poly_index, 1);
|
||||
|
||||
/* Set material of the curren poly.
|
||||
@ -625,7 +625,7 @@ static void exporter_SetLoop(ExportMeshData *export_data,
|
||||
BLI_assert(orig_loop_index >= 0 && orig_loop_index < dm_orig->getNumLoops(dm_orig));
|
||||
|
||||
/* Copy all loop layers, including mloop. */
|
||||
*mloop = which_mloop(export_data, which_orig_mesh) [orig_loop_index];
|
||||
*mloop = which_mloop(export_data, which_orig_mesh)[orig_loop_index];
|
||||
CustomData_copy_data(&dm_orig->loopData, &dm->loopData, orig_loop_index, loop_index, 1);
|
||||
}
|
||||
|
||||
|
@ -174,7 +174,7 @@ static void valuefn(float *out, TexParams *p, bNode *node, bNodeStack **in, shor
|
||||
break;
|
||||
}
|
||||
|
||||
case 17: /* Modulo */
|
||||
case 17: /* Modulo */
|
||||
{
|
||||
if (in1 == 0.0f)
|
||||
*out = 0.0f;
|
||||
|
Loading…
Reference in New Issue
Block a user