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>2019-03-27 09:14:36 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-27 09:14:36 +0300
commit8d7005d7152459eb66fa33ae14eba94a0169adbb (patch)
tree78a117f4c1256dda7ce1af72f3e5b04ecbb0c4cd /source/blender/bmesh/tools/bmesh_path.c
parente26b67fa1e13b45c395878dfc667af0b4cc458cf (diff)
Cleanup: style, use braces for bmesh
Diffstat (limited to 'source/blender/bmesh/tools/bmesh_path.c')
-rw-r--r--source/blender/bmesh/tools/bmesh_path.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/bmesh/tools/bmesh_path.c b/source/blender/bmesh/tools/bmesh_path.c
index 0ae1f4a57f1..4710c3929c4 100644
--- a/source/blender/bmesh/tools/bmesh_path.c
+++ b/source/blender/bmesh/tools/bmesh_path.c
@@ -171,8 +171,9 @@ LinkNode *BM_mesh_calc_path_vert(
while (!BLI_heapsimple_is_empty(heap)) {
v = BLI_heapsimple_pop_min(heap);
- if (v == v_dst)
+ if (v == v_dst) {
break;
+ }
if (!BM_elem_flag_test(v, BM_ELEM_TAG)) {
BM_elem_flag_enable(v, BM_ELEM_TAG);
@@ -343,8 +344,9 @@ LinkNode *BM_mesh_calc_path_edge(
while (!BLI_heapsimple_is_empty(heap)) {
e = BLI_heapsimple_pop_min(heap);
- if (e == e_dst)
+ if (e == e_dst) {
break;
+ }
if (!BM_elem_flag_test(e, BM_ELEM_TAG)) {
BM_elem_flag_enable(e, BM_ELEM_TAG);
@@ -529,8 +531,9 @@ LinkNode *BM_mesh_calc_path_face(
while (!BLI_heapsimple_is_empty(heap)) {
f = BLI_heapsimple_pop_min(heap);
- if (f == f_dst)
+ if (f == f_dst) {
break;
+ }
if (!BM_elem_flag_test(f, BM_ELEM_TAG)) {
BM_elem_flag_enable(f, BM_ELEM_TAG);