diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-05-31 16:21:16 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-31 16:22:52 +0300 |
commit | aba4e6810f8b4d0e459137b64e061a2cadc457d1 (patch) | |
tree | 2b6159c7ba0f23c020600b71276772fa4a882b5b /source/blender/editors/object | |
parent | 72a563cdee8fef198a200ff65b57ddb847c01795 (diff) |
Cleanup: style, use braces in source/ (include disabled blocks)
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r-- | source/blender/editors/object/object_constraint.c | 3 | ||||
-rw-r--r-- | source/blender/editors/object/object_relations.c | 6 | ||||
-rw-r--r-- | source/blender/editors/object/object_vgroup.c | 3 |
3 files changed, 8 insertions, 4 deletions
diff --git a/source/blender/editors/object/object_constraint.c b/source/blender/editors/object/object_constraint.c index abdf64af595..e424d2cc5bf 100644 --- a/source/blender/editors/object/object_constraint.c +++ b/source/blender/editors/object/object_constraint.c @@ -222,8 +222,9 @@ static void update_pyconstraint_cb(void *arg1, void *arg2) # else Object *owner = (Object *)arg1; bConstraint *con = (bConstraint *)arg2; - if (owner && con) + if (owner && con) { BPY_pyconstraint_update(owner, con); + } # endif } #endif // UNUSED diff --git a/source/blender/editors/object/object_relations.c b/source/blender/editors/object/object_relations.c index 6879a7f4a06..f748fd247ee 100644 --- a/source/blender/editors/object/object_relations.c +++ b/source/blender/editors/object/object_relations.c @@ -1384,10 +1384,12 @@ static void link_to_scene(Main *UNUSED(bmain), unsigned short UNUSED(nr)) Scene *sce = (Scene *)BLI_findlink(&bmain->scene, G.curscreen->scenenr - 1); Base *base, *nbase; - if (sce == NULL) + if (sce == NULL) { return; - if (sce->id.lib) + } + if (sce->id.lib) { return; + } for (base = FIRSTBASE; base; base = base->next) { if (BASE_SELECTED(v3d, base)) { diff --git a/source/blender/editors/object/object_vgroup.c b/source/blender/editors/object/object_vgroup.c index 05a3d86a23c..2e958385a60 100644 --- a/source/blender/editors/object/object_vgroup.c +++ b/source/blender/editors/object/object_vgroup.c @@ -2437,8 +2437,9 @@ void ED_vgroup_mirror(Object *ob, /* disabled, confusing when you have an active pose bone */ #if 0 /* flip active group index */ - if (flip_vgroups && flip_map[def_nr] >= 0) + if (flip_vgroups && flip_map[def_nr] >= 0) { ob->actdef = flip_map[def_nr] + 1; + } #endif cleanup: |