a7d8f602a6
Py/API: Improve intersect_line_line with parallel lines
...
Now comparing the distance between line-intersection points
to see how close lines are - doesn't fail in the parallel case.
2014-07-21 23:22:10 +10:00
ce47231cdb
Math Lib: Add isect_point_tri_v3
...
Add to Python via mathutils.geometry
2014-07-21 16:58:17 +10:00
cbde56572f
bmesh py api: face_split_edgenet missed NULL check
2014-07-21 12:42:00 +10:00
00b29156e0
Defines: replace ELEM3-16 with ELEM(...), that can take varargs
2014-07-20 01:33:40 +10:00
49a5115497
bmesh py api: add bmesh.utils.vert_splice(...)
2014-07-17 12:25:40 +10:00
7f4735ab3b
bmesh py api: BPY_BM_CHECK_SOURCE_* macro now accepts multiple args
2014-07-17 11:56:08 +10:00
de379c05de
bmesh py api: add BMesh.calc_tessface()
2014-07-16 11:57:28 +10:00
28940d79b1
bmesh py api: add typed tuple-from-array functions
2014-07-16 11:50:34 +10:00
8a04bed724
Error in last commit
2014-07-14 21:34:51 +10:00
a8e338cee5
Py/API: add bmesh.utils.face_split_edgenet
2014-07-14 21:32:37 +10:00
b6e0dc2237
Added missing G_DEBUG_DEPSGRAPH flag entry in the bpy.app.debug getters/setters list.
2014-07-02 09:31:14 +02:00
9f05588b68
Python: remove redundant casts
2014-07-01 14:10:59 +10:00
c3deb16c16
BMesh: add ability not to delete vertex when collapsing
2014-06-27 20:28:02 +10:00
414c70435d
T39690: Modifications to Blender's 'temp dir' system.
...
Current temporary data of Blender suffers one major issue - default 'temp' dir on Windows is never
automatically cleaned up, and can end being quite big when used by Blender, especially when we have
to store per-process data (using getpid() in file names).
To address this, this patch:
* Divides tempdir paths in two, one for 'base' temp dir (the same as previous unique tempdir path),
the other is a mkdtemp-generated sub-dir, specific to each Blender instance.
* Only uses base tempdir when we need some shallow persistance accross Blender sessions - and we always
reuse the same filename (quit.blend...) or generate small file (crash reports...).
* Uses temp sub-dir for heavy files like pointcache or renderEXRs (Save Buffer option).
* Erases temp sub-dir on quit or crash.
To get this working it also adds a working 'recursive delete' to BLI_delete() under Windows.
Note that, as in current code, the 'recover render result' hack-feature that was possible
with SaveBuffer option is still removed. A real renderresult cache feature will be added
soon, though.
Reviewers: campbellbarton, brecht, sergey
Reviewed By: campbellbarton, sergey
CC: sergey
Differential Revision: https://developer.blender.org/D531
2014-06-23 13:42:54 +02:00
87930eb7c2
Hopefully fix compilation with old MSVC2008/WIN32...
2014-06-18 10:32:25 +02:00
f94b87bbb8
New python API for units handling.
...
Exposes all supported unit systems & types, and to_value()/to_string() functions.
Reviewed and enhanced by CampbellBarton, many thanks!
Differential Revision: https://developer.blender.org/D416
2014-06-17 16:03:40 +02:00
f2a0062042
Use ARRAY_SIZE to replace (sizeof(a) / sizeof(*a))
2014-06-17 02:47:57 +10:00
f325ddb0d7
Fix Python fails to execute text-blocks including non-mbcs chars (T35176, D595)
2014-06-16 15:29:25 +10:00
b460674d64
Code cleanup: replace macro with function to reduce binary size
2014-06-03 19:25:07 +10:00
92a380d0b2
Minor changes for standalone mathutils
2014-05-17 12:06:29 +10:00
6b2689c3f2
Fix T40191: Misleading TypeError message when registering CollectionProperty wtihout kwarg "type".
...
Turned up to be a cleanup of doc in that whole module...
2014-05-14 17:50:32 +02:00
c88e65da61
Code cleanup: comment typos
2014-05-11 16:22:05 +10:00
5e3509e2d2
Remove redundant NULL check
2014-05-07 14:14:27 +10:00
b75b0a11e0
Update parse_syntax_error() to Python 3.4x version
2014-05-02 06:24:29 +10:00
35ca209152
Code cleanup: remove unused kludge for Py/Win encoding
2014-05-02 00:56:24 +10:00
bb5b608deb
Fix T31555: Username with special chars in Windows 7
...
At last! Could not check seriously on windows (though it was done during py patch
process).
2014-05-01 16:25:39 +02:00
af86b008b2
Include removal gave problems with windows, ifdef some back in for windows only
2014-05-01 07:21:08 +10:00
cb48c0ceea
Revert "Fix msvc 2013 compiler errors after the ingenious cleanup in 4ca67869cc7a."
...
This reverts commit a47a4ef82f .
2014-05-01 07:20:46 +10:00
a47a4ef82f
Fix msvc 2013 compiler errors after the ingenious cleanup in 4ca67869cc.
2014-04-30 23:16:12 +02:00
4ca67869cc
Code cleanup: remove unused includes
...
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-05-01 04:47:51 +10:00
4d1a109dde
Fix T35176: Python fails with blend files from non-ASCII paths
...
Thanks to Tamito for updating the patch to support Freestyle!
2014-04-30 23:43:01 +10:00
b96d531bc9
Python: move to version 3.4x on all platforms
2014-04-30 23:19:16 +10:00
c034a252bb
Code cleanup: quiet warnings
2014-04-29 22:37:44 +10:00
94bf67b78e
Error in last commit
2014-04-29 20:41:28 +10:00
232f19f0c2
PyAPI: Matrix.invert(ed): accept an optional fallback argument
...
This avoids try/except when its possible the matrix has no inverse.
2014-04-29 20:12:07 +10:00
409fb4da0c
Code cleanup: remove redundant matrix initialization
2014-04-29 18:13:20 +10:00
a91c4ac99f
Ignore user-preferences when inserting keys from Python
2014-04-29 07:35:04 +10:00
3d9b4159a4
PyC_RunQuicky: Print filename when its missing
2014-04-29 02:55:59 +10:00
e73d0f57a3
Code cleanup: use 'const' for arrays (python)
2014-04-27 00:25:15 +10:00
dc847607b6
Change Vector.slerp to accept nonunit vectors
2014-04-18 20:49:39 +10:00
0b7f581397
Split Normals I (2/5): Add basic BMesh support of split normals.
...
* Merely a re-implementation of core split algorithm for BMesh, taking advantage of topological data available.
* This code needs valid loop indices, so added BM_LOOP support to BM_mesh_elem_index_ensure() & co.
Reviewers: campbellbarton
Reviewed By: campbellbarton
CC: brecht
Differential Revision: https://developer.blender.org/D366
2014-04-13 12:25:54 +02:00
a15b3c4d11
Code cleanup: use bool
2014-04-11 11:33:29 +10:00
5873160242
Code cleanup: strict flags for bmesh_log
2014-04-03 17:13:31 +11:00
617557b08e
Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT define
2014-04-01 15:22:28 +11:00
55f83e36cc
Py API: Vector.slerp(). also added interp_v3_v3v3_slerp(_safe) functions
2014-03-31 13:28:37 +11:00
6aa75d3b2c
Fix for error in normalize_vn_vn(), add len_squared_vn
2014-03-31 11:19:32 +11:00
7199e2288f
Code cleanup: use sqrtf when input and output are float
2014-03-28 14:53:37 +11:00
e9a64e2770
Fix T39392: Python bindings for geometry.box_pack_2d() return invalid total height
2014-03-24 17:39:54 +01:00
a91247c2b4
Code cleanup: unreachable break/return
2014-03-19 12:47:09 +11:00
7da2175271
KDTree: deprecate 'normal' argument
...
Normals for each kdtree node were allocated but never used,
and search args only use in particles/boids code.
2014-03-18 09:14:47 +11:00