Campbell Barton
55cacb2e63
Add callback for starting a render-job
...
We had complete/cancel, but no matching init for rendering,
render_pre/post callbacks aren't always usable.
2014-08-29 16:17:31 +10:00
Sergey Sharybin
21a7433faa
Fix T41473: Cycles volume rendering is too dark
...
The issue was caused by the changed defaults from the Cycles side.
Because of those properties being saved as an IDProp and not being
saved to the file, every change to the defaults would ruin someone's
day updating the values.
Added a bpy.app.handler.version_update which is run after the regular
do_versions() are done and could be sued by the scripts to apply
versioning code on their settings.
Reviewers: campbellbarton
Reviewed By: campbellbarton
Differential Revision: https://developer.blender.org/D761
2014-08-28 18:59:24 +06:00
Antony Riakiotakis
85945a8b86
Add debug information for maximum opengl limits in system info
...
generation.
2014-08-28 12:19:59 +02:00
Campbell Barton
3ba28a2609
Python API: support thick wrapped int arrays
...
add bpy.data.version, needed for Python versioning code.
2014-08-25 23:57:03 +10:00
Campbell Barton
ff42afb6c5
Math Lib: rename barycentric_transform -> transform_point_by_tri_v3
...
also add transform_point_by_seg_v3
2014-08-13 14:55:45 +10:00
Campbell Barton
3529913629
Math Lib: name signed versions of dist_to_plane_v3 explicitly
...
also add unsigned versions
2014-08-13 14:34:58 +10:00
Campbell Barton
dfd9bfd3a8
Spelling
2014-08-13 08:38:16 +10:00
Sergey Sharybin
3e41c8ad6f
Fix compilation error with debug scons
...
The issue is that we've got hell with DEBUG and _DEBUG,
theu're defined really inconsistent acros CMake and SCons.
Used more reliable NDEBUG definition for IDP_spit.
2014-08-11 20:58:42 +06:00
Campbell Barton
d4599ff001
Fix T40766: Startup fails with UnicodeDecodeError on Windows
2014-08-11 17:53:42 +10:00
Campbell Barton
a108532eb9
Fix for mathutils.Euler on big endian systems
...
D719 from jrestemeier with edits
2014-08-08 02:11:54 +10:00
Tamito Kajiyama
8d3bfef538
Extended mathutils.Vector.orthogonal() to accept a 2D vector.
...
Reviewer: Campbell Barton
Differential revision: https://developer.blender.org/D668
2014-07-23 23:10:03 +09:00
Campbell Barton
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
Campbell Barton
ce47231cdb
Math Lib: Add isect_point_tri_v3
...
Add to Python via mathutils.geometry
2014-07-21 16:58:17 +10:00
Campbell Barton
cbde56572f
bmesh py api: face_split_edgenet missed NULL check
2014-07-21 12:42:00 +10:00
Campbell Barton
00b29156e0
Defines: replace ELEM3-16 with ELEM(...), that can take varargs
2014-07-20 01:33:40 +10:00
Campbell Barton
49a5115497
bmesh py api: add bmesh.utils.vert_splice(...)
2014-07-17 12:25:40 +10:00
Campbell Barton
7f4735ab3b
bmesh py api: BPY_BM_CHECK_SOURCE_* macro now accepts multiple args
2014-07-17 11:56:08 +10:00
Campbell Barton
de379c05de
bmesh py api: add BMesh.calc_tessface()
2014-07-16 11:57:28 +10:00
Campbell Barton
28940d79b1
bmesh py api: add typed tuple-from-array functions
2014-07-16 11:50:34 +10:00
Campbell Barton
8a04bed724
Error in last commit
2014-07-14 21:34:51 +10:00
Campbell Barton
a8e338cee5
Py/API: add bmesh.utils.face_split_edgenet
2014-07-14 21:32:37 +10:00
Lukas Tönne
b6e0dc2237
Added missing G_DEBUG_DEPSGRAPH flag entry in the bpy.app.debug getters/setters list.
2014-07-02 09:31:14 +02:00
Campbell Barton
9f05588b68
Python: remove redundant casts
2014-07-01 14:10:59 +10:00
Campbell Barton
c3deb16c16
BMesh: add ability not to delete vertex when collapsing
2014-06-27 20:28:02 +10:00
Bastien Montagne
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
Bastien Montagne
87930eb7c2
Hopefully fix compilation with old MSVC2008/WIN32...
2014-06-18 10:32:25 +02:00
Bastien Montagne
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
Campbell Barton
f2a0062042
Use ARRAY_SIZE to replace (sizeof(a) / sizeof(*a))
2014-06-17 02:47:57 +10:00
Tamito Kajiyama
f325ddb0d7
Fix Python fails to execute text-blocks including non-mbcs chars (T35176, D595)
2014-06-16 15:29:25 +10:00
Campbell Barton
b460674d64
Code cleanup: replace macro with function to reduce binary size
2014-06-03 19:25:07 +10:00
Campbell Barton
92a380d0b2
Minor changes for standalone mathutils
2014-05-17 12:06:29 +10:00
Bastien Montagne
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
Campbell Barton
c88e65da61
Code cleanup: comment typos
2014-05-11 16:22:05 +10:00
Campbell Barton
5e3509e2d2
Remove redundant NULL check
2014-05-07 14:14:27 +10:00
Campbell Barton
b75b0a11e0
Update parse_syntax_error() to Python 3.4x version
2014-05-02 06:24:29 +10:00
Campbell Barton
35ca209152
Code cleanup: remove unused kludge for Py/Win encoding
2014-05-02 00:56:24 +10:00
Bastien Montagne
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
Campbell Barton
af86b008b2
Include removal gave problems with windows, ifdef some back in for windows only
2014-05-01 07:21:08 +10:00
Campbell Barton
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
Thomas Dinges
a47a4ef82f
Fix msvc 2013 compiler errors after the ingenious cleanup in 4ca67869cc.
2014-04-30 23:16:12 +02:00
Campbell Barton
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
Campbell Barton
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
Campbell Barton
b96d531bc9
Python: move to version 3.4x on all platforms
2014-04-30 23:19:16 +10:00
Campbell Barton
c034a252bb
Code cleanup: quiet warnings
2014-04-29 22:37:44 +10:00
Campbell Barton
94bf67b78e
Error in last commit
2014-04-29 20:41:28 +10:00
Campbell Barton
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
Campbell Barton
409fb4da0c
Code cleanup: remove redundant matrix initialization
2014-04-29 18:13:20 +10:00
Campbell Barton
a91c4ac99f
Ignore user-preferences when inserting keys from Python
2014-04-29 07:35:04 +10:00
Campbell Barton
3d9b4159a4
PyC_RunQuicky: Print filename when its missing
2014-04-29 02:55:59 +10:00
Campbell Barton
e73d0f57a3
Code cleanup: use 'const' for arrays (python)
2014-04-27 00:25:15 +10:00