Campbell Barton
76e6d2f19d
Cleanup: spelling
...
Also remove historic bftgl reference.
2019-10-17 12:40:36 +11:00
Campbell Barton
36b6fb5cd6
Cleanup: warnings building with Python 3.8
2019-10-16 14:44:36 +11:00
Campbell Barton
d3d6cd2e09
PyAPI: drop Vector requirement for tessellate_polygon
...
Use mathutils_array_parse which converts any sequence of numbers.
2019-10-09 17:28:49 +11:00
Campbell Barton
6ff60d9982
PyAPI: avoid normal calculation for tessellate_polygon
...
Use fixed normal for 2D input, no need to calculate it.
2019-10-09 17:08:51 +11:00
Campbell Barton
a6a0a09197
Cleanup: spelling
2019-09-30 17:07:05 +10:00
Jacques Lucke
4987f28ed2
Fix T70177: Crash when calling to_track_quat() without arguments
2019-09-23 09:46:31 +02:00
Alexander Gavrilov
b3aa8f0fad
Mathutils: expose the swing + twist Quaternion decomposition to Python.
...
This decomposition is useful in rigging, and involves a math trick.
2019-09-22 13:19:33 +03:00
Campbell Barton
0b2d1badec
Cleanup: use post increment/decrement
...
When the result isn't used, prefer post increment/decrement
(already used nearly everywhere in Blender).
2019-09-08 00:23:25 +10:00
Campbell Barton
b1959a96a2
Cleanup: spelling
2019-08-18 04:26:34 +10:00
Campbell Barton
2790740813
Cleanup: spelling
2019-08-17 00:57:05 +10:00
Campbell Barton
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
Howard Trickey
6f9cbbc8ec
Add mathutils.geometry.delaunay_2d_cdt() function to Python API.
...
Provides Python API access to recently added Constrained Delaunay
Triangulation routine.
Reviewed in D5467.
2019-08-13 07:31:14 -04:00
Campbell Barton
1cd65b274b
BLI_math: add isect_tri_tri_v2, wrap via mathutils.geometry
2019-08-11 21:50:48 +10:00
Campbell Barton
2425401a59
Cleanup: spelling
2019-08-04 12:51:44 +10:00
Campbell Barton
b5b0804c5a
Cleanup: use _ex suffix instead of _ext
...
Convention is to use ex, not ext for extended
versions of a functions.
2019-08-01 18:39:21 +10:00
Campbell Barton
e927ce8acb
Cleanup: avoid line breaks from trailing comments
2019-07-10 14:41:19 +10:00
Campbell Barton
b2e3f23bec
Cleanup: remove redundant cast
2019-07-04 21:14:12 +10:00
Campbell Barton
6529d20d79
Cleanup: spelling in comments
2019-06-12 09:43:49 +10:00
Alexander Gavrilov
ec1c9e3258
Python API: add a Matrix.Diagonal constructor to mathutils.
...
For some reason there seems to be no way to do the very simple and
obvious task of converting a scale vector to a matrix via mathutils.
The Matrix.Scale constructor does something complicated instead.
Reviewers: brecht, campbellbarton
Differential Revision: https://developer.blender.org/D4893
2019-05-19 15:03:27 +03:00
Campbell Barton
41a63556cf
Revert "Cleanup: add semicolon after PyObject_VAR_HEAD"
...
This reverts commit a01bcfa636 .
This causes MSVC2019 build to fail with error C2059
Unfortunately this means we have to put up with bad formatting
in Python structs.
2019-05-03 18:09:52 +10:00
Campbell Barton
a01bcfa636
Cleanup: add semicolon after PyObject_VAR_HEAD
...
clang-format doesn't expand macros,
add semicolon to prevent misleading formatting.
2019-05-03 12:43:18 +10:00
Campbell Barton
778542fd8f
Cleanup: comments (long lines) in python
2019-04-29 20:01:10 +10:00
Campbell Barton
2753959ed7
Cleanup: sort CMake include paths
2019-04-24 14:41:12 +10:00
Campbell Barton
bbc5c1e36f
Cleanup: quiet extra-semicolon warning
2019-04-20 11:30:19 +02:00
Campbell Barton
333cdbb410
Cleanup: comment blocks
2019-04-18 07:59:28 +02:00
Jacques Lucke
f3b7b7eb0c
Fix T63673: Wrong api documentation for Quaternion.dot(other)
2019-04-17 13:49:30 +02: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
dbc058301b
Cleanup: trailing commas
2019-04-16 16:40:47 +02:00
Campbell Barton
5498e7f193
CMake: add library deps to CMakeLists.txt
...
Tested to work on Linux and macOS.
This will be enabled once all platforms are verified.
See D4684
2019-04-16 06:20:52 +02:00
Campbell Barton
47adab4f99
CMake: prepare for BLENDER_SORTED_LIBS removal
...
No functional change, this adds LIB definition and args to cmake files.
Without this it's difficult to migrate away from 'BLENDER_SORTED_LIBS'
since there are many platforms/configurations that could break when
changing linking order.
Manually add and enable WITHOUT_SORTED_LIBS to try building
without sorted libs (currently fails since all variables are empty).
This check will eventually be removed.
See T46725.
2019-04-14 15:37:24 +02:00
Campbell Barton
25ec4b437f
Cleanup: style, use braces for the Python API
2019-03-30 07:14:28 +11:00
Brecht Van Lommel
c39d82daf4
Cleanup: remove unused derivedmesh code.
2019-03-28 20:02:59 +01:00
Campbell Barton
a38313c3bd
Cleanup: style, array wrapping
...
Add trailing comma for clang-format.
2019-03-25 09:02:04 +11:00
Campbell Barton
109cbdf2e1
Cleanup: use BLI_kdtree_3d prefix
...
Use prefix now there isn't only the 3d version.
2019-03-20 00:48:51 +11:00
Campbell Barton
35b78d9807
Cleanup: indentation, wrapping
...
Mostly functions wrapping args, not confirming to our style guide.
2019-03-15 09:54:30 +11:00
Bastien Montagne
ab0bc65c24
Refactor CDData masks, to have one mask per mesh elem type.
...
We already have different storages for cddata of verts, edges etc.,
'simply' do the same for the mask flags we use all around Blender code
to request some data, or limit some operation to some layers, etc.
Reason we need this is that some cddata types (like Normals) are
actually shared between verts/polys/loops, and we don’t want to generate
clnors everytime we request vnors!
As a side note, this also does final fix to T59338, which was the
trigger for this patch (need to request computed loop normals for
another mesh than evaluated one).
Reviewers: brecht, campbellbarton, sergey
Differential Revision: https://developer.blender.org/D4407
2019-03-07 11:29:50 +01: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
ab5e69e660
Cleanup: remove contributors for CMake files
...
Following removal from C source code.
See: 8c68ed6df1
2019-02-05 09:10:32 +11:00
Campbell Barton
744f633986
Cleanup: trailing commas
...
Needed for clan-format not to wrap onto one line.
2019-02-03 14:59:11 +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
f20dbc293f
Cleanup: blank lines over doxy headers
2019-01-26 21:43:24 +11:00
Campbell Barton
8a61ea7296
Cleanup: add trailing commas
...
Prevents clang-format merging into a single line.
2019-01-19 13:58:35 +11:00
Campbell Barton
bcf0c71433
Cleanup: remove non-existing function declarations
2018-12-31 00:58:54 +11:00
Bastien Montagne
b3e68a83f3
Fix T58734: bvhtree.fromObject - error ( returned NULL without setting an error) in blender 2.8.
...
Would free evaluated mesh even when it was the one cached in runtime
data by depsgraph evaluation!
Also fixes the asserts about using non-eval object in some cases.
2018-12-27 17:21:17 +01:00
Campbell Barton
d46d8e831c
Merge branch 'master' into blender2.8
2018-12-19 10:28:26 +11:00
Campbell Barton
5c3953010d
Cleanup: spelling
2018-12-19 10:18:15 +11:00
Campbell Barton
4b545d1bbf
Fix T58975: "@=" operator silently fails
...
D4083 by @artfunkel
2018-12-16 09:49:00 +11:00
Campbell Barton
49490e5cfb
Merge branch 'master' into blender2.8
2018-12-12 13:02:09 +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