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-08-01Cleanup: declare vars or make staticCampbell Barton
2018-07-31BLF: replace global aa pref w/ monochrome flagCampbell Barton
Now disabling anti-aliasing doesn't impact sequencer, render stamp etc.
2018-07-30Cleanup: id-property creationCampbell Barton
D3473 by @JacquesLucke
2018-07-01RNA: use bool for boolean RNA typesCampbell Barton
We were using int's for bool arguments in BKE, just to avoid having wrapper functions.
2018-06-29Cleanup: trailing newlinesCampbell Barton
2018-06-26PyAPI: add ImBuf.copyCampbell Barton
DD348 by @kilon w/ edits.
2018-06-26PyAPI: move deep-copy args check to py_capi_utilsCampbell Barton
2018-06-22Cleanup: get rid of last G.main's in bpy area.Bastien Montagne
Essentially 'validating' them as G_MAIN, and adding some asserts in dubious places, that handled IDs are actually in G_MAIN.
2018-06-07Python API: Initial 'imbuf' APICampbell Barton
Support only basic operations new/load/write & resize. Add now so we can extend as needed & more easily accept patches.
2018-06-04Cleanup: strip trailing space in Python moduleCampbell Barton
2018-05-05IDProp API: add native C repr functionCampbell Barton
Was using Python which wasn't very efficient (even for logging).
2018-05-05IDProp Py API: Add default argument to popCampbell Barton
Match dict.pop behavior.
2018-05-04IDProp API: expose repr utility functionCampbell Barton
Useful for logging properties passed to operators.
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-10-17Fix T53074: Use the pybuffer->itemsize to get the corresponding GLtypeGermano
It seems that `typestr` does not always define the final size of the element. And it varies by operating system. Then use the `typestr` only to know the itemtype is `float` type or not.
2017-10-06Cleanup: styleCampbell Barton
2017-10-04Cleanup: redundant castsCampbell Barton
2017-10-04PyAPI: fast keyword parsing for __import__Campbell Barton
No functional changes.
2017-09-28Cleanup: switch fall-through warningCampbell Barton
2017-09-27bgl module: extend `gl_buffer_type_from_py_format_char` function to work ↵Germano
with more string formats Only basic types of character codes were being used
2017-09-27Cleanup: warningCampbell Barton
2017-09-27bgl module: Interpret a buffer as a bgl.BufferGermano
Differential Revision: https://developer.blender.org/D2857
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: Make use of PyC_LongAs... APICampbell Barton
Avoids setting exceptions inline, also use Matrix_ParseAny for bmesh.ops. Some inline exceptions are kept because they show useful details.
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-07-17PyAPI: don't use deprecated PyModule_GetFilenameCampbell Barton
Allows compiling with newer Python versions. Also add missing decref when compiling as a py-module.
2017-04-13Datablock ID PropertiesAlexander Romanov
The absence of datablock properties "will certainly be resolved soon as the need for them is becoming obvious" said the [[http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.67/Python_Nodes|Python Nodes release notes]]. So this patch allows Python scripts to create ID Properties which reference datablocks. This functionality is implemented for `PointerProperty` and now such properties can be created with Python. In addition to the standard update callback, `PointerProperty` can have a `poll` callback (standard RNA) which is useful for search menus. For details see the test included in this patch. Original author: @artfunkel Alexander (Blend4Web Team) Reviewers: brecht, artfunkel, mont29, campbellbarton Reviewed By: mont29, campbellbarton Subscribers: jta, sergey, campbellbarton, wisaac, poseidon4o, mont29, homyachetser, Evgeny_Rodygin, AlexKowel, yurikovelenov, fjuhec, sharlybg, cardboard, duarteframos, blueprintrandom, a.romanov, BYOB, disnel, aditiapratama, bliblubli, dfelinto, lukastoenne Maniphest Tasks: T37754 Differential Revision: https://developer.blender.org/D113
2017-04-10PyAPI: Fast buffer access to id property arraysJacques Lucke
Support Python's buffer protocol for ID-properties.
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: minor optimization for dictionary creationCampbell Barton
Pass size when its known.
2016-07-31PyAPI: fix leak in unlikely case converting idprops failCampbell Barton
2016-07-31PyAPI: Add PyC_UnicodeAsByteAndSizeCampbell Barton
Read the string length from Python directly when assigning id-properties
2016-07-31Docs: add initial idprop.types API docsCampbell Barton
2016-07-16Cleanup: spellingCampbell Barton
2016-07-14PyAPI: fix memory leaks in dictionary assignmentCampbell Barton
Thanks to Kévin Dietrich for spotting driver leak, checked other uses of PyDict_SetItem and found more.
2016-07-14PyAPI: Use module names on initializatonCampbell Barton
No need to re-convert from C strings to PyUnicode.
2016-07-02Fix typo in bgl.Buffer report functionThomas Szepe
A GL_INT buffer was reported as GL_BYTE.
2016-05-17C99/C++11: replace deprecated finite() by isfinite().Brecht Van Lommel
2016-04-22BLF: use float vector passing color argsCampbell Barton
2016-03-04Cleanup: suspicious use of commasCampbell Barton
2015-12-31Cleanup: Py API namingCampbell Barton
Use BPY_execute_* prefix for all Python execution commands