Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-04-02PyAPI: Add PyC_Tuple_Pack_F64 utilityCampbell Barton
2018-04-02Logging: use for Python APICampbell Barton
Adds categories "bpy.context" & "bpy.rna"
2017-11-29PyAPI: PyC_Err_PrintWithFunc utility functionCampbell Barton
Move function error printing utility into py_capi_utils.
2017-09-19Cleanup: BLI_utildefines prefix for header-only libsCampbell Barton
This allows to have different macro headers without them sharing similar names to regular C modules.
2017-08-23Cleanup: mark VA_NARGS_COUNT as publicCampbell Barton
Was already used in two other headers, remove underscore prefix.
2017-08-23Cleanup: move variadic defines to their own headerCampbell Barton
So we can use in headers without pulling in many other defines.
2017-08-23PyAPI: avoid instantiating args twice in macroCampbell Barton
Would cause problems if args included function calls.
2017-08-22PyAPI: replace PyC_FromArray with typed functionsCampbell Barton
This was meant to be generic but introduced possible type errors and unnecessary complication. Replace with typed PyC_Tuple_PackArray_* functions. Also add PyC_Tuple_Pack_* macro which replaces some uses of Py_BuildValue, with the advantage of not having to parse a string.
2017-08-21Fix for recent fix in fc890cd, cstdint is c++11 only so don't use it yet.Brecht Van Lommel
2017-08-20Replace BLI_INLINE w/ Py_LOCAL_INLINE for PythonCampbell Barton
Recent inclusion caused build error with the BGE.
2017-08-20PyAPI: Integer conversion functionsCampbell Barton
Python's C-API doesn't provide functions to get int's at specific integer sizes. Leaving the caller to check for overflow, which ended up being ignored in practice. Add API functions that convert int/uint 8/16/32/64, also bool. Raising overflow exception for unsupported ranges.
2017-03-18PyAPI: add BPY_execute_string_as_stringCampbell Barton
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-18Cleanup: use return args last and 'r_' prefix.Campbell Barton
2016-07-31PyAPI: Add PyC_UnicodeAsByteAndSizeCampbell Barton
Read the string length from Python directly when assigning id-properties
2015-12-31Cleanup: Py API namingCampbell Barton
Use BPY_execute_* prefix for all Python execution commands
2015-08-03Add bool parser for PyArg_ParseTupleCampbell Barton
Use for mathutils.bvhtree
2015-07-29Fix leak in PyC_AsArrayCampbell Barton
Would only happen when the list-length was an unexpected size. Also add PyC_AsArray_FAST
2015-05-18UI: errors in buttons now show in info reportCampbell Barton
Mistakes in button expressions were previously only printed to the console.
2015-01-06PyAPI: add utilities PyTuple_SET_ITEMS, Py_INCREF_RETCampbell Barton
Setting all values of a tuple is such a common operation that it deserves its own macro. Also added Py_INCREF_RET to avoid confusing use of comma operator.
2014-06-17New python API for units handling.Bastien Montagne
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-04-30Python: move to version 3.4x on all platformsCampbell Barton
2014-01-06Python API: utility function for filling a tuple with a single value.Campbell Barton
2013-10-17add local _PyLong_AsInt() needed for python older then 3.3.2Campbell Barton
2013-09-19replace macro PYC_INTERPRETER_ACTIVE for PyC_IsInterpreterActive() function ↵Campbell Barton
call, (indirectly referenced Python define of ~30 lines, most were optimized out but still caused some code bloat).
2013-01-07code cleanup: warnings and use stdbool for bpy* funcs.Campbell Barton
2013-01-05This patch adds support in bpy.props for getter/setter callback functions. ↵Lukas Toenne
We already have update callbacks, but generic get/set functions can come in handy in some cases where the functionality is too complex to use a single value. The current C callback functions are too simple allow a straightforward implementation, in particular they don't receive the PropertyRNA pointer itself as an argument, which means the callback cannot directly access the PropertyRNA's py_data pointers which store the python function objects. For this reason a second runtime variant of these callbacks has been added. It is only used for runtime callbacks and not in makesrna, but otherwise works the same way.
2013-01-04expose common extensions for image/movie/audio types, since python scripts ↵Campbell Barton
had to do this internally. - bpy.path.extensions_image - bpy.path.extensions_movie - bpy.path.extensions_audio eg: if os.path.splitext(filename)[1].lower() in bpy.path.extensions_image: ... we have an image ...
2012-12-28style cleanupCampbell Barton
2012-10-09code cleanup: make header defines more consistent, JOYSENSOR header guard ↵Campbell Barton
had a typo too.
2012-07-19fix for separate loose parts doing full depsgraph rebuild for every object ↵Campbell Barton
split off.
2012-02-22utility functions to convert between flags / sets, without depending on RNA API.Campbell Barton
2012-02-21fix for leak in gpu.export_shader(), wasnt freeing the function.Campbell Barton
also change the bmesh iterator so its possible to initialize without stepping.
2012-02-17unify include guard defines, __$FILENAME__Campbell Barton
without the underscores these clogged up the namespace for autocompleation which was annoying.
2012-02-05Code Cleanup: line length and use Py_ssize_t for PyC_AsArray utility function.Campbell Barton
2011-10-23remove $Id: tags after discussion on the mailign list: ↵Campbell Barton
http://markmail.org/message/fp7ozcywxum3ar7n
2011-10-22py api - added PyC_UnicodeFromByteAndSize() to match ↵Campbell Barton
PyUnicode_FromStringAndSize() also made RNA_property_string_get_alloc() return the length of the new string to avoid having to run strlen on it after.
2011-10-20debug build option WITH_PYTHON_UI_INFO, so you can right click and edit the ↵Campbell Barton
python source for UI layout directly.
2011-09-15New C/Py api utility function PyC_Err_Format_Prefix() which raises an error ↵Campbell Barton
with the existing error as a suffix. Use this to raise errors when assigning a string property fails even though the value to assign *is* a string. Before: TypeError: bpy_struct: item.attr= val: Object.name expected a string type, not str After: TypeError: bpy_struct: item.attr= val: Object.name error assigning string, UnicodeEncodeError('utf-8' codec can't encode character '\udce9' in position 23: surrogates not allowed)
2011-07-09fix [#27683] Blender hangs when baking a particle system when a driver is ↵Campbell Barton
present
2011-06-17IDProperty python module updateCampbell Barton
- add support for IDProp array slicing, but not resizing. - rename array attribute type to typecode and use chars 'f', 'd', 'i' which match pythons array module. (was using int's which only have a meaning internally). - rename function 'convert_to_pyobject' to 'to_dict' and 'to_list' for IDProp group and array types respectively. - remove 'len' array attribute, calling len(array) is fine.
2011-04-18fix [#26951] blenderplayer and runtimes will not loadCampbell Barton
blenderplayer wasn't finding bundled python, eg: ./2.57/python/lib
2011-03-25new function RNA_warning(), replaces printf with function which may be ↵Campbell Barton
called via python. Now this gives the line number of the scripts thats running, eg: uiItemFullO: unknown operator 'some.operator' /c/bin/2.56/scripts/startup/bl_ui/space_view3d_toolbar.py:73
2011-02-27doxygen: blender/python tagged.Nathan Letwory
2011-02-23doxygen: prevent GPL license block from being parsed as doxygen comment.Nathan Letwory
2011-02-01correct fix for bug #23871, __main__ module was being overwritten in nested ↵Campbell Barton
functions, so on returning from calling operators the __main__ module could be cleared and imported modules turn into None calling bpy.ops.wm.read_factory_settings() ... would clear a scripts namespace if running directly, not in a module. Fix by backing up and restoring the __main__ module. Also found BKE_reportf wasnt printing all reports in background mode as BKE_report() was doing.
2010-12-03Enabled GCC -Wwrite-strings warning for CMake and replaced many 'char's for ↵Campbell Barton
'const char's,. Only one functional change where Transform orientations passed "" to BIF_createTransformOrientation() which could then have the value written into.
2010-10-04typo in function prefix.Campbell Barton
2010-09-19python/c utility function for debugging, see ↵Campbell Barton
http://wiki.blender.org/index.php/Dev:Doc/Debugging/PyFromC
2010-09-18* Update BGE for change in r32001Nathan Letwory
* Fix var declaration in bpy_interface.c * Remove forward declarations from py_capi_utils.h: they are unnecessary and break compiles (there were probably many warnings about this during compile with GCC).
2010-09-18move namespace creation function into py_capi_utils.c, to be used in more ↵Campbell Barton
general cases, not just the blender/rna api.