diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-12-30 11:55:15 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-12-30 11:55:15 +0400 |
commit | 6d965f4493871c9bd4550939b8263d0c509b7c41 (patch) | |
tree | eb5fecdc3fc376d056d9e4ea7366c3a8e0dea8b7 /source/blender/editors | |
parent | ca629d5ccc65da456babba6c5bdbfa0de737ac7b (diff) |
style edits for function declarations
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/mesh/editmesh_mods.c | 6 | ||||
-rw-r--r-- | source/blender/editors/mesh/editmesh_tools.c | 4 | ||||
-rw-r--r-- | source/blender/editors/physics/physics_fluid.c | 6 | ||||
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_vertex.c | 19 |
4 files changed, 28 insertions, 7 deletions
diff --git a/source/blender/editors/mesh/editmesh_mods.c b/source/blender/editors/mesh/editmesh_mods.c index a6e6a041090..995db5aa88b 100644 --- a/source/blender/editors/mesh/editmesh_mods.c +++ b/source/blender/editors/mesh/editmesh_mods.c @@ -1336,7 +1336,8 @@ void mesh_layers_menu_concat(CustomData *data, int type, char *str) } } -int mesh_layers_menu(CustomData *data, int type) { +int mesh_layers_menu(CustomData *data, int type) +{ int ret; char *str_pt, *str; @@ -2455,7 +2456,8 @@ static int select_linked_limited_invoke(ViewContext *vc, short all, short sel) #undef is_face_tag #undef face_tag -static void linked_limit_default(bContext *C, wmOperator *op) { +static void linked_limit_default(bContext *C, wmOperator *op) +{ if(!RNA_property_is_set(op->ptr, "limit")) { Object *obedit= CTX_data_edit_object(C); EditMesh *em= BKE_mesh_get_editmesh(obedit->data); diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c index 37d3d5b587c..12e51acbda7 100644 --- a/source/blender/editors/mesh/editmesh_tools.c +++ b/source/blender/editors/mesh/editmesh_tools.c @@ -6308,8 +6308,8 @@ static int validate_loop(EditMesh *em, Collection *edgecollection) return(1); } -static int loop_bisect(EditMesh *em, Collection *edgecollection){ - +static int loop_bisect(EditMesh *em, Collection *edgecollection) +{ EditFace *efa, *sf1, *sf2; EditEdge *eed, *sed; CollectedEdge *curredge; diff --git a/source/blender/editors/physics/physics_fluid.c b/source/blender/editors/physics/physics_fluid.c index cc60f4a52fd..5294e29d3d5 100644 --- a/source/blender/editors/physics/physics_fluid.c +++ b/source/blender/editors/physics/physics_fluid.c @@ -146,7 +146,8 @@ static int fluid_is_animated_mesh(FluidsimSettings *fss) #if 0 /* helper function */ -void fluidsimGetGeometryObjFilename(Object *ob, char *dst) { //, char *srcname) { +void fluidsimGetGeometryObjFilename(Object *ob, char *dst) { //, char *srcname) +{ //BLI_snprintf(dst,FILE_MAXFILE, "%s_cfgdata_%s.bobj.gz", srcname, ob->id.name); BLI_snprintf(dst,FILE_MAXFILE, "fluidcfgdata_%s.bobj.gz", ob->id.name); } @@ -769,7 +770,8 @@ static void fluidbake_endjob(void *customdata) } } -int runSimulationCallback(void *data, int status, int frame) { +int runSimulationCallback(void *data, int status, int frame) +{ FluidBakeJob *fb = (FluidBakeJob *)data; elbeemSimulationSettings *settings = fb->settings; diff --git a/source/blender/editors/sculpt_paint/paint_vertex.c b/source/blender/editors/sculpt_paint/paint_vertex.c index 0b15ee36355..3cb613ac5ca 100644 --- a/source/blender/editors/sculpt_paint/paint_vertex.c +++ b/source/blender/editors/sculpt_paint/paint_vertex.c @@ -1875,11 +1875,14 @@ static int wpaint_stroke_test_start(bContext *C, wmOperator *op, wmEvent *UNUSED { Scene *scene= CTX_data_scene(C); struct PaintStroke *stroke = op->customdata; - ToolSettings *ts= CTX_data_tool_settings(C); + ToolSettings *ts= scene->toolsettings; VPaint *wp= ts->wpaint; Object *ob= CTX_data_active_object(C); struct WPaintData *wpd; Mesh *me; + +// bDeformGroup *dg; + float mat[4][4], imat[4][4]; if(scene->obedit) return OPERATOR_CANCELLED; @@ -1924,6 +1927,20 @@ static int wpaint_stroke_test_start(bContext *C, wmOperator *op, wmEvent *UNUSED return OPERATOR_PASS_THROUGH; } +#if 0 + /* check if we are attempting to paint onto a locked vertex group, + * and other options disallow it from doing anything useful */ + dg = BLI_findlink(&ob->defbase, (ob->actdef-1)); + if ( (dg->flag & DG_LOCK_WEIGHT) && + (ts->auto_normalize == FALSE) && + (ts->multipaint == FALSE) ) + { + BKE_report(op->reports, RPT_WARNING, "Active group is locked, multi-paint/normalize disabled, aborting"); + + return OPERATOR_CANCELLED; + } +#endif + /* ALLOCATIONS! no return after this line */ /* make mode data storage */ wpd= MEM_callocN(sizeof(struct WPaintData), "WPaintData"); |