Sybren A. Stüvel
20869065b8
Cleanup: BMesh, Clang-Tidy else-after-return fixes
...
This addresses warnings from Clang-Tidy's `readability-else-after-return`
rule in the `source/blender/bmesh` module.
No functional changes.
2020-07-03 14:48:37 +02:00
Dalai Felinto
2d1cce8331
Cleanup: make format after SortedIncludes change
2020-03-19 09:33:58 +01:00
Campbell Barton
2fb9c8ef12
Cleanup: add missing macros to clang-format
2019-04-21 04:40:16 +10:00
Campbell Barton
e12c08e8d1
ClangFormat: apply to source, most of intern
...
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
2019-04-17 06:21:24 +02:00
Campbell Barton
8d7005d715
Cleanup: style, use braces for bmesh
2019-03-27 17:14:36 +11:00
Campbell Barton
de13d0a80c
doxygen: add newline after \file
...
While \file doesn't need an argument, it can't have another doxy
command after it.
2019-02-18 08:22:12 +11:00
Campbell Barton
eef4077f18
Cleanup: remove redundant doxygen \file argument
...
Move \ingroup onto same line to be more compact and
make it clear the file is in the group.
2019-02-06 15:45:22 +11:00
Campbell Barton
65ec7ec524
Cleanup: remove redundant, invalid info from headers
...
BF-admins agree to remove header information that isn't useful,
to reduce noise.
- BEGIN/END license blocks
Developers should add non license comments as separate comment blocks.
No need for separator text.
- Contributors
This is often invalid, outdated or misleading
especially when splitting files.
It's more useful to git-blame to find out who has developed the code.
See P901 for script to perform these edits.
2019-02-02 01:36:28 +11:00
Campbell Barton
5c3953010d
Cleanup: spelling
2018-12-19 10:18:15 +11:00
Campbell Barton
e757c4a3be
Cleanup: use colon separator after parameter
...
Helps separate variable names from descriptive text.
Was already used in some parts of the code,
double space and dashes were used elsewhere.
2018-12-12 12:50:58 +11:00
Campbell Barton
ae8225ba6d
Fix BMesh bisect not flagging dirty indices
2018-05-15 09:04:12 +02:00
Campbell Barton
60956397ca
Cleanup: BLI_utildefines prefix for header-only libs
...
This allows to have different macro headers without them sharing
similar names to regular C modules.
2017-09-19 20:16:05 +10:00
Campbell Barton
89120cd241
bmesh: use 'uint' instead of 'unsigned int'
...
no functional changes.
2017-05-06 14:19:08 +10:00
Germano Cavalcante
2b3cc24388
Fix T50920: Adds missing edges on return of bisect operator
2017-03-13 09:22:11 -03:00
Campbell Barton
0a026033ae
BMesh: make toolflags optional
...
Saves 8 bytes per vert/edge/face.
Gives overall ~20-25% memory saving for dyntopo sculpting
and modifiers that use BMesh.
2016-07-01 19:29:22 +10:00
Campbell Barton
9ac83d499e
Fix bisect flagging w/ multiple cuts on an ngon
...
Caused symmetrize to fail for concave ngons crossing the midpoint multiple times.
2016-01-09 02:06:45 +11:00
Campbell Barton
02cbc3c1e0
Cleanup: indentation
2015-05-17 17:25:57 +10:00
Campbell Barton
46e2d5ee41
Cleanup: typo
2014-11-21 14:16:35 +01:00
Campbell Barton
30dab51c29
Cleanup: use bool and const args
2014-10-09 22:44:03 +02:00
Campbell Barton
c729ce7e05
BMesh: remove point-in-face test for bisect
...
instead track inside/outside state while stepping over intersections.
2014-09-28 19:19:58 +10:00
Campbell Barton
7df4fc5eaf
Spelling
2014-08-13 09:34:37 +10:00
Campbell Barton
f32079d4b9
BLI_stackdefines
...
Bounds check the stack while debugging, also add STACK_PEEK
2014-06-29 05:57:48 +10:00
Campbell Barton
c5ccbacdaa
move STACK_* macros into BLI_stackdefines.h
2014-06-25 00:01:33 +10:00
Campbell Barton
48881ad1e0
Code cleanup: doxy comments
2014-05-14 15:00:47 +10:00
Campbell Barton
3d031d1f3a
BMesh: minor changes for BM_face_split use
2014-03-13 18:41:45 +11:00
Campbell Barton
62aa004c25
Style Cleanup: whitespace
2014-01-12 22:05:24 +11:00
Campbell Barton
04a902965e
BMesh optimize face splitting by taking loops rather then verts
...
- add BM_vert_pair_share_face
- add BM_loop_is_adjacent
- remove BM_verts_connect
2013-12-24 11:13:58 +11:00
Campbell Barton
bea9c3ab30
Fix T36998: Bisect would operate on unselected vertices.
2013-11-19 07:00:18 +11:00
Campbell Barton
1ae0de2f3a
fix [ #37013 ] Mesh > bisect can't fill the cut if it lines up with two or more adjacent vertices
2013-10-16 03:21:55 +00:00
Campbell Barton
0b1cf4c2ea
code cleanup: warnings and minor edits.
2013-10-04 17:47:58 +00:00
Campbell Barton
ec4a7fcad1
fix for lasso selection (in non-zbuf mode) when the line intersected its self.
...
isect_point_poly_v2() - add argument to check overlapping areas.
2013-10-04 10:48:24 +00:00
Campbell Barton
43217da6d9
set mempool debug in the game-engine-player too. also remove redundant mempool includes.
2013-10-03 16:34:00 +00:00
Campbell Barton
2dc988df8c
reorder BLI_strict_flags.h include so its not conflicting with stdio.h on apple.
2013-09-03 04:39:12 +00:00
Campbell Barton
2924a02a35
move strict compiler checks into a header so its easier to manage in one place (pragmas were copied around).
...
also enable more strict warnings for BLF (which had some incorrect casts).
2013-09-01 00:46:04 +00:00
Campbell Barton
11703b4955
style cleanup
2013-08-27 21:30:33 +00:00
Campbell Barton
620d674b85
fix error in recently added symmetrize rewrite, verts already on the aligned to the mirror-plane would not be welded.
2013-08-23 13:27:44 +00:00
Campbell Barton
6f4b79d5af
edits to new symmetrize tool
...
- snap axis-aligned verts to the center.
- expose the threshold for detecting if a vertex is on the axis.
2013-08-23 05:32:43 +00:00
Campbell Barton
6cba2b8d73
move bmesh tools into their own include,
...
changes to tool args would rebuild far too many files and these are mainly by modifiers outside of bmesh.
2013-08-23 04:22:07 +00:00
Campbell Barton
e97f979f73
new bmesh operator bisect_plane, cuts a mesh in half, takes a user defined plane as an argument, handles concave ngons which need multiple cuts.
2013-08-22 17:56:08 +00:00