03b2371387
Cleanup: move trailing comments to avoid wrapping code
...
Some statements were split across multiple lines because of their
trailing comments.
In most cases it's clearer to put the comments above.
2019-08-14 23:32:24 +10:00
760dbd1cbf
Cleanup: misc spelling fixes
...
T68035 by @luzpaz
2019-08-01 14:02:41 +10:00
matc
a542f50b51
Fix T67523: Incorrect UV's for grid primitive
2019-07-29 14:28:02 +10:00
ee192a35e8
Cleanup: comments (long lines) in bmesh
2019-04-29 22:06:26 +10:00
2fb9c8ef12
Cleanup: add missing macros to clang-format
2019-04-21 04:40:16 +10:00
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
8d7005d715
Cleanup: style, use braces for bmesh
2019-03-27 17:14:36 +11:00
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
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
744f633986
Cleanup: trailing commas
...
Needed for clan-format not to wrap onto one line.
2019-02-03 14:59:11 +11:00
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
8a61ea7296
Cleanup: add trailing commas
...
Prevents clang-format merging into a single line.
2019-01-19 13:58:35 +11:00
5c3953010d
Cleanup: spelling
2018-12-19 10:18:15 +11:00
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
854db8951b
Cleanup: strip trailing space in bmesh module
2018-06-04 08:49:47 +02:00
d1dfed206b
Fix T52923: Circle diameter is in fact radius
2017-10-04 18:01:53 +11:00
49c29dc82f
Fix T52066: Grid Mesh UV's aren't correct
2017-07-16 00:03:52 +10:00
df94f2f399
Fix T51180: BMesh crash using calc_uvs=True
...
Don't assume UV layer exist.
2017-05-15 16:53:57 +10:00
89120cd241
bmesh: use 'uint' instead of 'unsigned int'
...
no functional changes.
2017-05-06 14:19:08 +10:00
d426c335c5
Fix T51135: Cylinder primitive generated bad UVs
2017-04-06 12:20:22 -03:00
9992e6a169
Fix a few compiler warnings with macOS / clang.
2017-02-18 23:59:34 +01:00
a1a8343281
Cleanup: redundant index loop for monkey-create
...
Also rename face vars (the faces aren't temp),
and quiet old-style-definition warning.
2016-11-18 06:10:53 +11:00
5bdff9ea80
Quiet shadow warning
...
No need to declare new iterator for second loop.
2016-09-25 12:19:38 +10:00
Peter Lu
a070a5befa
Mesh: added default UVs for Monkey, improved UVs for UV Sphere and Icosphere.
...
Fixes T47488 and T47478.
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D2224
2016-09-24 16:39:23 +02:00
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
b9996a3cc3
Fix Cube generated UV's rotated incorrectly
2016-05-14 23:01:59 +10:00
5231b049d7
Fix T47443: Circle & UV Sphere aren't aligned
...
D1912 by @samb96
Change the starting point of the UV sphere so that it is aligned with the circle, cylinder, and cone primitives.
2016-04-12 19:47:29 +10:00
4e500101a7
Cleanup: quiet -Wcomma, cast to void where needed
2016-03-05 09:16:12 +11:00
fdcec62dad
Cleanup: invalid comment & style
2015-12-21 00:14:41 +11:00
dc98a3b0a7
Cleanup: style/spelling
2015-12-12 15:10:03 +11:00
258564a7b4
Fix (unreported) Newly added grid's vertices not being selected.
...
`bmo_create_grid_exec` was not tagging created vertices with `MARK_VERT`, which seems
mandatory to get them selected? This sounds a bit hacky/odd to me, but that's what
all other primitive funcs do...
2015-12-05 00:48:27 +01:00
3c6709a63c
Fix T37879: Default UV generation for mesh primitives.
...
Adds default-generated UVs to mesh primitives (cone, cylinder, icosphere, uvsphere, cube, circle, grid)
when they are added to the scene, since some of them can be pretty awkward to unwrap manually.
Original patch: Liam Mitchell (CommanderCorianderSalamander).
Main review work: Campbell Barton (campbellbarton).
Finalization, fixes and cleanup: Bastien Montagne (mont29).
Reviewers: mont29, #mesh_modeling, campbellbarton
Reviewed By: mont29, campbellbarton
Subscribers: lkruel, campbellbarton, michaelknubben, kevindietrich
Maniphest Tasks: T37879
Differential Revision: https://developer.blender.org/D481
2015-12-04 23:49:55 +01:00
fd9b25df75
cleanup: create cube, use index lookups
2015-01-04 14:21:16 +11:00
90e1746d89
BMesh: correct flag use
...
Allowed fill to make duplicate faces
2014-08-21 13:08:13 +10:00
38e683cbb1
Fix T38217: Fix glitch adding Monkey with view align
...
added an option so view-align can default to a different axis.
2014-01-16 23:54:04 +11:00
aa3933b411
Fix own regression - adding a grid had rotated face.
...
some scripts depended on uv's default values
2013-11-29 10:15:26 +11:00
46cc02c5cd
Correct fix for T37617, (own recent regression)
2013-11-26 07:13:34 +11:00
1768bd2c33
Fix T37617: "Add plane" was adding a 2*2 grid
...
Was a regression from rBaa3c06b41ca9, hope this time all things are OK again (note the X/Y subdivision values still are different than before (-1 for same result), but imho they make more sense this way).
2013-11-25 21:01:22 +01:00
aa3c06b41c
Fix T37573: Adding grid primitive slow for many subdivisions
2013-11-25 20:35:56 +11:00
1decd824f3
Code Cleanup: use math functions and reduce View3d axis drawing into a loop
2013-11-24 21:26:16 +11:00
afab39b9d6
code cleanup: use const's for static arrays
2013-10-10 20:22:17 +00:00
8937a8b839
use BM_CREATE_NOP arg rather then zero, with pointer and bool args in either side in some cases it gets a bit confusing.
...
also correct edge-rotate where bool->flag conversion worked by accident.
2013-08-21 05:39:46 +00:00
b1f4e2b4db
code comments: bmesh operator doxy header descriptions.
2013-03-30 08:54:50 +00:00
6f9f1399a0
code cleanup: operator headers
2013-03-25 22:40:11 +00:00
b27854bd47
use booleans for bmesh api.
2013-01-14 16:42:43 +00:00
07ccd3ee3f
fix [ #33029 ] Applying modifier leaks memory
...
Thanks for Sergey for finding the bug & patching, This fix works a bit differently.
Theres no need to allocate the customdata in the first place - since its written into. So add a flag for vert/edge/face/loop creation functions so they can skip customdata creation.
2012-11-29 16:26:39 +00:00
cac253a502
fix for minor annoyance - when extruding a circle there would always be one face flipped, now edges are all ordered in the same direction.
2012-11-28 14:15:54 +00:00
8ecce451ab
bmesh operator naming - use clearer names for args eg: (mat -> matrix, use_singleedge -> use_single_edge)
...
also remove duplicate docs for operator arg formatting.
2012-11-28 00:16:06 +00:00
dbdc76c9d0
code cleanup: make bmesh operator names more consistant since python has access to these as input arguments and return values.
...
all output values currently have ".out" suffix, this may go in the future, but for now it makes it clear in C code what are inputs and outputs.
2012-11-20 05:50:19 +00:00
48639af5f8
use input and output slots for bmesh operators, needed for the python api to get return values.
2012-11-19 14:58:31 +00:00