f2a0062042
Use ARRAY_SIZE to replace (sizeof(a) / sizeof(*a))
2014-06-17 02:47:57 +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
a91c4ac99f
Ignore user-preferences when inserting keys from Python
2014-04-29 07:35:04 +10:00
e73d0f57a3
Code cleanup: use 'const' for arrays (python)
2014-04-27 00:25:15 +10:00
a15b3c4d11
Code cleanup: use bool
2014-04-11 11:33:29 +10:00
a91247c2b4
Code cleanup: unreachable break/return
2014-03-19 12:47:09 +11:00
a8dc5b274b
Alternative fix for T38753, use existing __file__ in namespace
2014-03-06 03:31:00 +11:00
433b20b7ea
PyAPI: correct warning with dynamic enums
2014-02-28 21:26:19 +11:00
18f6bb04fa
Fix for custom property editor when property id's contained quotes
...
Adds bpy.utils.escape_identifier()
2014-02-25 16:19:57 +11:00
99edd29835
Fix T38753: Python script paths weren't escaped (Win only)
2014-02-22 17:54:50 +11:00
5621e63d36
Code cleanup: duplicate headers
2014-02-14 10:55:38 +11:00
a397009181
Fix T38541: sys.exit fails when blender is built as a py-module
2014-02-13 06:58:06 +11:00
a8a567d28e
RNA: add flag to be used for changing numbers proportionally
2014-02-09 06:30:48 +11:00
06e0e3fb8a
Py Docs: move bpy.props options and subtype flags into generic defines
...
added some missing flags into docs too.
2014-02-09 06:26:55 +11:00
d900f5be55
Code cleanup: use bools where possible
2014-02-03 19:35:44 +11:00
2011156eec
Fix for crash linking node groups through bpy.data.library
...
Defer creating the Python objects until after appending is finished
because NodeTree's types are not initialized until then.
2014-01-31 00:56:19 +11:00
299180f3c6
Fix T36955: API docs referred to sys.maxint which does not exist in Python 3.
2014-01-29 16:49:12 +01:00
a5c35fb27f
Code cleanup: use booleans where appropriate
2014-01-28 04:00:04 +11:00
85a3d51078
Fix for own refcount error in recent commit
2014-01-21 14:23:39 +11:00
e9efde2a05
Fix T38297: missing StringProperty subtype 'PASSWORD' in API docs.
2014-01-20 22:01:11 +01:00
2e01f38885
Python API: fix for help() failing on bpy instances
...
Caused by missing __name__ from bpy.types (alternate method to patch D232)
2014-01-20 18:13:15 +11:00
a696a0ff1e
Python API: create args for meta-classes directly (a little faster).
...
Also add some new interned strings.
2014-01-20 18:09:00 +11:00
348cf17448
Code Cleanup: no need to pass empty strings as default values
2014-01-16 22:00:29 +11:00
4848f9029a
Patch D133: Python wrapper for BLI_kdtree (adds mathutils.kdtree)
...
Originally by Dan Eicher, with my own fixes and adjustments (see patch page for details).
For details there are unit tests and api example usage.
doc/python_api/sphinx-in-tmp/menu_id.png
2014-01-06 20:32:34 +11:00
6734936c13
RNA API: use bool's for enum itemf callbacks.
2014-01-04 18:10:01 +11:00
b9114cb609
UI: Use bool rather then int/short's where possible
2014-01-04 18:10:01 +11:00
0d6ae3fda2
Main API: refactor naming, use BKE_main_ prefix and add main arg.
2013-12-30 13:25:27 +11:00
3cc7978f19
Move python threading stuff to own file in bf_python_ext
...
This way blender player can easily use BPY_thread_save/restore.
Not so much important for master branch, but crucial to solve
linking issues in threaded depsgraph branch.
2013-12-23 23:14:10 +06:00
5036ac6903
Partial fix for T37604: Deadlock when stopping rendered viewport (Blender Internal)
...
- Py_BEGIN_ALLOW_THREADS and Py_END_ALLOW_THREADS macros cannot be used here, because the Py_BEGIN_ALLOW_THREADS causes a crash when quitting Blender.
- The low level function PyEval_ReleaseLock() is used assuming the Python library was built with multi-threads support.
2013-12-17 18:44:56 +11:00
c701082a92
RNA: Add pixels property type
2013-12-13 04:40:30 +11:00
96f95e0223
Python API: when OIIO is disabled use the same version format.
2013-12-10 12:58:10 +11:00
ab6f60aad2
Python API: when OCIO is disabled use the same version format.
2013-12-10 01:11:02 +11:00
46f8dba4c7
Extend system-info with information about OIIO, OCIO and OSL
...
Summary:
Version of those libraries might be useful to know.
- OIIO and OCIO is exposed via bpy.app.oiio and bpy.app.ocio.
There're "supported", "version" and "version_string" defined
in those modules.
- OSL is available as _cycles.osl_version and _cycles.osl_version_string.
Reviewers: campbellbarton
Reviewed By: campbellbarton
CC: dingto
Differential Revision: http://developer.blender.org/D79
2013-12-08 15:03:17 +06:00
75212f4677
BMesh Py API: add bmesh.geometry.intersect_face_point()
...
patch originally by mont29 with some edits.
2013-12-06 21:15:56 +11:00
02f90c0001
User Interface: don't show macro args in tooltips
...
was often making much too big strings to show in a tip.
2013-11-26 09:00:24 +11:00
85bbef0f4e
python api internals: no need to set the stop-iter exception string.
2013-11-17 15:09:57 +11:00
927dea436e
Further tweaks to buildinfo
...
Summary:
Old idea with changes since previous release tag
didn't work good enough. In most of the cases tag
was done in a branch hence not actually reachable
from the master branch.
Now change since release is gone, and date of
the latest commit is used instead.
The date is displayed in format YYYY-MM-DD HH:mm
in the splash.
New bpy.app fields:
- build_commit_timestamp is an unix timestamp of
the commit blender was build from.
- build_commit_date is a date of that commit.
- build_commit_time is a time of that commit.
Reviewers: campbellbarton
Differential Revision: http://developer.blender.org/D5
2013-11-15 18:05:27 +06:00
ad34a5cc1b
Fix [ #34675 ] *AFTER 2.69* Info view shows duplicate operators with incorrect values of args
...
Refactored a bit WM api to generate operator's pystring, now it can also handle correctly macro operators. Thanks to Campbell for the review!
2013-11-06 20:56:18 +00:00
1b4afb161d
code cleanup: typos
2013-11-05 04:23:46 +00:00