39ee0f01e3
Merge branch 'master' into blender2.8
2018-08-31 14:25:42 +10:00
98800aa4e0
C/Python API: Add PyC_RunString_AsIntPtr
...
Utility to get an int or pointer from a Python expression.
2018-08-31 14:21:32 +10:00
8cd7828792
GWN: Port to GPU module: Replace GWN prefix by GPU
2018-07-18 11:49:15 +02:00
56173e512c
Merge branch 'master' into blender2.8
2018-06-17 16:18:15 +02:00
a0a1fc8938
Cleanup: BLI path extension API
...
Use BLI_path_extension_* prefix.
2018-06-17 16:13:24 +02:00
a60d4f33c6
Merge branch 'master' into blender2.8
2018-06-07 08:15:11 +02:00
409cfba1a3
Python API: Initial 'imbuf' API
...
Support only basic operations new/load/write & resize.
Add now so we can extend as needed & more easily accept patches.
2018-06-07 08:00:13 +02:00
f0d9dbae0d
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/blenkernel/intern/blendfile.c
source/blender/blenloader/intern/readfile.h
source/blender/blenloader/intern/versioning_250.c
source/blender/blenloader/intern/versioning_260.c
source/blender/blenloader/intern/versioning_270.c
source/blender/blenloader/intern/versioning_legacy.c
source/blender/editors/render/render_shading.c
source/blender/makesrna/intern/rna_movieclip.c
source/blender/render/intern/source/pipeline.c
source/blender/render/intern/source/voxeldata.c
2018-06-05 17:02:50 +02:00
481cdb08ed
Cleanup: use new accessors to blendfile path (Main.name).
2018-06-05 16:33:46 +02:00
5b64301834
Merge branch 'master' into blender2.8
2018-06-04 09:06:14 +02:00
7719c11006
Cleanup: strip trailing space in Python module
2018-06-04 08:54:40 +02:00
89fdd88906
Merge branch 'master' into blender2.8
2018-04-02 15:18:10 +02:00
017c731cf3
Logging: use for Python API
...
Adds categories "bpy.context" & "bpy.rna"
2018-04-02 13:13:57 +02:00
28048f75ce
Merge branch 'master' into blender2.8
2017-11-29 21:32:16 +11:00
e32cfb0743
Cleanup: rename bpy_util -> bpy_capi_utils
...
This is for internal CAPI use only, avoid confusion w/ bpy.utils module.
2017-11-29 21:11:29 +11:00
cb67873ac5
PyAPI: Iniital gawain API for Python
...
Wraps vertex-format, vertex-buffer and batch's (enough for drawing).
Doesn't yet expose index-buffers or shaders.
2017-08-18 08:45:41 +10:00
193d7d6333
Merge branch 'master' into blender2.8
2017-07-17 13:21:05 +10:00
3d1e5bca88
PyAPI: don't use deprecated PyModule_GetFilename
...
Allows compiling with newer Python versions.
Also add missing decref when compiling as a py-module.
2017-07-17 12:53:55 +10:00
5b51dcacbc
PyAPI: add intern strings
...
Avoid string conversion on each use.
2017-06-21 12:43:19 +10:00
24e3a930f1
Fix T51444: Unit tests don't run on Windows
2017-05-25 18:56:00 +10:00
e392bb4937
PyAPI: add BPY_execute_string_as_string
...
Utility to execute a string and get the resulting string,
matching BPY_execute_string_as_number.
Not used just yet but generally useful function.
2017-03-18 12:19:03 +11:00
d863b5182e
Cleanup: use return args last and 'r_' prefix.
2017-03-18 09:39:36 +11:00
9f5621bb4a
Cleanup: comment blocks
2016-07-02 10:08:33 +10:00
fbbac6807a
Cleanup: unused win32 headers
2016-05-12 04:35:40 +10:00
de21f07f6c
Generic check for string being a Py keyword
...
Driver code used incomplete list of Py keywords
2016-04-01 09:49:16 +11:00
0ffc603553
Cleanup: Py API naming
...
Use BPY_execute_* prefix for all Python execution commands
2015-12-31 21:20:41 +11:00
70dfb61300
Cleanup: remove _POSIX_C_SOURCE undefine
2015-10-20 14:06:29 +11:00
a5e631171b
BLI_path api, minor changes to CWD handling
...
- BLI_current_working_dir's return value must be checked, since it may fail.
- BLI_current_working_dir now behaves like getcwd, where a too-small target will return failure.
- avoid buffer overrun with BLI_path_cwd, by taking a maxlen arg.
2015-10-08 15:05:58 +11:00
5f64b77ca5
Fix T45955: Python's pdb can't show script source
2015-08-31 23:41:13 +10:00
339915a962
Optimize PySequence_Fast usage
...
Access arrays directly, avoiding type-check every time.
2015-07-29 10:49:35 +10:00
3ce4a58aa9
Cleanup: duplicate includes
2015-06-18 06:32:01 +10:00
958c20872a
Add argument --python-expr to pass Python directly
...
This works like Python's -c argument, handy to be able to avoid writing small scripts to disk.
2015-06-11 21:54:06 +10:00
29aae4db38
UI: errors in buttons now show in info report
...
Mistakes in button expressions were previously only printed to the console.
2015-05-18 10:02:29 +10:00
6603a10331
Cleanup: remove redundant initializers
2015-04-16 22:26:20 +10:00
f7dbce9914
Real fix for T44127: Python does not guarantee to free all objects on exit...
...
All kudos to Campbell for the head-up and patch!
2015-04-01 09:34:01 +02:00
43fa4baa6c
Refactor: BLI_path_util (part 2)
...
Use BKE_appdir/tempdir naming prefix for functions extracted from BLI_path_util
2014-11-23 18:55:52 +01:00
6308c16675
Refactor: BLI_path_util (split out app directory access)
...
This module is intended for path manipulation functions
but had utility functions added to access various directories.
2014-11-23 18:42:18 +01:00
cbe68f70a8
Cleanup: spelling
2014-09-29 15:51:47 +10:00
9f05588b68
Python: remove redundant casts
2014-07-01 14:10:59 +10: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
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
a8dc5b274b
Alternative fix for T38753, use existing __file__ in namespace
2014-03-06 03:31:00 +11:00
99edd29835
Fix T38753: Python script paths weren't escaped (Win only)
2014-02-22 17:54:50 +11:00