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
2015-06-17Cleanup: duplicate includesCampbell Barton
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.
2015-01-01cleanup: redundant casts & const cast correctnessCampbell Barton
2014-12-18correct recent cleanup for id-property typesCampbell Barton
2014-11-24SCons: correct include for win, also minor cleanupCampbell Barton
2014-11-14Fix T42593: Rigify crash when I press "Generate" - corrupted IDGroup's ↵Bastien Montagne
listbase of children Nothing related to rigify actually, recent hack in py handling of IDProp (rB3346ab03) was breaking integrity of IDGroup's listbase of children IDProps... Took me hours to nail this down, should have bisected for once. :/
2014-11-10Fix/workaround T37073: Crash updating custom props visible in the UICampbell Barton
2014-08-11Fix compilation error with debug sconsSergey Sharybin
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-04-30Code cleanup: remove unused includesCampbell Barton
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-04-26Code cleanup: use 'const' for arrays (python)Campbell Barton
2014-04-01Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT defineCampbell Barton
2014-01-27Code cleanup: use booleans where appropriateCampbell Barton
2013-11-17python api internals: no need to set the stop-iter exception string.Campbell Barton
2013-11-08fix for crash when deleting from an id property, with a non-string key.Campbell Barton
2013-10-17add typechecks when assigning id-property arrays from python (overflows and ↵Campbell Barton
errors weren't detected) reduce/simplify exceptions more.
2013-10-17simplify & improve error handling for id-property python-api.Campbell Barton
2013-10-17fix [#37105] Long int IDproperties produces errors at weird spots.Campbell Barton
2013-10-16add IDP_FreeFromGroup(), replaces IDP_RemFromGroup(), IDP_FreeProperty(), ↵Campbell Barton
MEM_freeN().
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-07-09minor improvementsCampbell Barton
- calc normals only check flag when needed. - keymap, dont get name unless its needed. - keymap, avoid property lookup. - idprop debug print, include pointer, helpful for troubleshooting.
2013-03-09code cleanup: favor braces when blocks have mixed brace use.Campbell Barton
2013-02-06fix for building blender as a python module,Campbell Barton
changes to internal import behavior of py3.3 broke it.
2013-02-06some fixes for building blender as a python module again (wip, more work ↵Campbell Barton
needed).
2013-01-03add id property clear function (matching the same python function for ↵Campbell Barton
dicts/lists)
2012-11-21py api cleanup, replace use...Campbell Barton
- PyLong_FromSsize_t --> PyLong_FromLong - PyLong_AsSsize_t --> PyLong_AsLong In all places except for those where python api expects PySsize_t (index lookups mainly). - use PyBool_FromLong in a few areas of the BGE. - fix incorrect assumption in the BGE that PySequence_Check() means PySequence_Fast_ functions can be used.
2012-11-05default to Python3.3 on Linux for SCons and CMake, warn when building with ↵Campbell Barton
python 3.2x or older. also remove casts to keep Python3.2 warning quiet.
2012-11-03code cleanup: float <> double conversion.Campbell Barton
2012-11-03style cleanup: tabs & whitespaceCampbell Barton
2012-11-01fix [#30910] Problems: Add Shortcut(s) for "Ctrl Tab" menuCampbell Barton
comparing keymaps was too sloppy or too strict, now sloppy keymap comparison works by setting all the operator properties to their default values if they are not already set, then compare this with the keymap item (ignoring values missing from either one). ... this way any non default keymap setting wont match with an operator menu item which doesnt set this operator at all (a problem sighted in this bug report). developer notes: - IDP_EqualsProperties_ex() function adds an argument to treat missing members of either group to act as if there is a match. - WM_operator_properties_default() function to reset RNA values to their defaults. - add IDP_spit(), debug only function to print out ID properties.
2012-10-31add IDP_MergeGroup(dst, src, overwrite) function,Campbell Barton
like PyDict_Merge()
2012-10-12optimization for PyObject -> ID-property sequence conversion, use ↵Campbell Barton
PySequence_Fast.
2012-10-12quiet clang static checker warning by returning an error for invalid ↵Campbell Barton
situation getting an IDProp mapping from a PyObject. also print the path installed to when installing an addon.
2012-07-17code cleanup: spellingCampbell Barton
2012-05-20code cleanup:Campbell Barton
- style - multi-line ifs move braces onto new lines. - iterators - convert some to macros, other split up and move brace.
2012-04-15add 'idprop' module so we can document idprop.types.*, currently doc ↵Campbell Barton
generator has no access to ID Property types.
2012-04-11fix [#30906] dict(prop) crashes if prop is a PropertyGroup with nested ↵Campbell Barton
PropertyGroup the ID of a python ID property can be NULL.
2012-03-26style cleanup: python apiCampbell Barton
2012-03-17style cleanup: py/capiCampbell Barton
2012-03-09added API function to C and pythonCampbell Barton
* C: BM_vert_separate(...) * py: bmesh.utils.vert_separate(vert, edges) This splits off regions around the vertex, splitting on connected edges passed in a sequence. also made minor changes - rename python api functions _rip to _separate - fixed bmesh iterator being iterable its self (some parts of python expect this) - fix memory leak in bmesh python api.
2012-03-04style cleanup - comment formattingCampbell Barton
2012-02-26* bmesh py api BMEdge.verts was using 2 v1'sCampbell Barton
* bmesh pu api __repr__ functions for mesh data. * correct py hash defines.
2012-01-11Longer names support for all ID and other object namesSergey Sharybin
This commit extends limit of ID and objects to 64 (it means 63 meaning characters and 1 for zero-terminator). CustomData layers names are also extended. Changed DNA structures and all places where length constants were hardcoded. All names which are "generating" from ID block should be limited by MAX_ID_NAME-2, all non-id names now has got own define called MAX_NAME which should be used all over for non-id names to make further name migration stuff easier. All name fields in DNA now have comment with constant which corresponds to hardcoded numeric value which should make it easier to further update this limits or even switch to non-hardcoded values in DNA. Special thanks to Campbell who helped figuring out some issues and helped a lot in finding all cases where hardcoded valued were still used in code. Both of forwards and backwards compatibility is stored with blender versions newer than January 5, 2011. Older versions had issue with placing null-terminator to DNA strings on file load which will lead to some unpredictable behavior or even crashes.
2011-12-18formatting edits in py api, no functional changesCampbell Barton
2011-11-26fix for own error with id props when adding byte stringsCampbell Barton
2011-11-15de-duplicate some idproperty py api code, also improve some exception messages.Campbell Barton
2011-11-15rename IDProp.c/h to idprop_py_api, since it was same name as BKE idprop.c ↵Campbell Barton
with case changed.