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-01-06PyAPI: add PyList_APPENDCampbell Barton
This appends while giving ownership to the list, avoiding temp assignment. This matches PyList_SET_ITEM which bypasses refcount's Note, this also reduce code-size, Py_DECREF is a rather heavy macro.
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-04mathutils: refactor instantiationCampbell Barton
remove 'type' argument, very few mathutils objects are wrapped, add new function for creating wrapped objects. also fixes unlikely memory leak if the data-array can't be allocated.
2014-12-27Fix a very stupid memleak in own bpy_app_translations.c code...Bastien Montagne
Safe for 2.73.
2014-12-25Refactor 'immediate search' featureBastien Montagne
Currently, code just checks whether a text-edited button uses a given icon (VIEWZOOM) to decide to apply changes on each typed char. This patch adds a propper button flag (UI_BUT_TEXTEDIT_UPDATE) and a dedicated RNA flag (PROP_TEXTEDIT_UPDATE) for that. It's also now usable not only for text buttons, but also for example for num buttons when in 'text edit' mode, etc. It also fixes an actual bug, which is for text properties, in 'immediate' mode, hitting escape would not restore org value, because `ui_apply_but_TEX()` would set its orgstr to NULL on first call (giving it to `but->rename_orig` instead of copying it). Note no change in behavior is expected from user POV. Update for addons using that 'VIEWZOOM' icon 'feature' will follow (if any). Reviewers: campbellbarton Reviewed By: campbellbarton Projects: #user_interface, #bf_blender:_next Differential Revision: https://developer.blender.org/D938
2014-12-01Python: add 'render_write' callbackCampbell Barton
This is useful for addons which intend to write data next to the rendered image/movie, but not for preview renders.
2014-11-29Cleanup: unused headersCampbell Barton
2014-11-29Cleanup: unused headersCampbell Barton
2014-11-28Cleanup: duplicate headersCampbell Barton
2014-11-23Refactor: BLI_path_util (part 2)Campbell Barton
Use BKE_appdir/tempdir naming prefix for functions extracted from BLI_path_util
2014-11-23Refactor: BLI_path_util (split out app directory access)Campbell Barton
This module is intended for path manipulation functions but had utility functions added to access various directories.
2014-11-16Fix T42581: Add 'icon_value' feature to UI Py/RNA's operator button and ↵Bastien Montagne
items of enums. Rather straightforward, allows for 'DATA' icons (like mat or tex 'previews') to be used as icon for operator button or items of an enum. Patch by Simon Lušenc, with minor cleanup by self.
2014-11-16Cleanup: use BLI_listbase_*** prefix for count,sort,sort_rCampbell Barton
2014-11-03Fix T42233: Python property ignores 'PROPORTIONAL'Campbell Barton
2014-10-28WM: unneeded alloc the operator-type iteratorCampbell Barton
2014-10-13Fix T42005: Reset py-handlers could crashCampbell Barton
Wasn't acquiring the GIL.
2014-10-08Ghost Context RefactorJason Wilkins
https://developer.blender.org/D643 Separates graphics context creation from window code in Ghost so that they can vary separately.
2014-09-29Cleanup: spellingCampbell Barton
2014-09-25Fix previous commit rB34abb614f1344a6, which broke addons translations.Bastien Montagne
Ghash comp callbacks must return false in case a & b are equal! Also slightly cleaned up gash code using those comp func, since those return booleans now, let's compare tham against booleans!
2014-09-25Fix ghash comparator used by translationSergey Sharybin
It now need to return bool whether element matched or not.
2014-09-09remove invalid commentsCampbell Barton
2014-08-29Add callback for starting a render-jobCampbell Barton
We had complete/cancel, but no matching init for rendering, render_pre/post callbacks aren't always usable.
2014-08-28Fix T41473: Cycles volume rendering is too darkSergey Sharybin
The issue was caused by the changed defaults from the Cycles side. Because of those properties being saved as an IDProp and not being saved to the file, every change to the defaults would ruin someone's day updating the values. Added a bpy.app.handler.version_update which is run after the regular do_versions() are done and could be sued by the scripts to apply versioning code on their settings. Reviewers: campbellbarton Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D761
2014-08-25Python API: support thick wrapped int arraysCampbell Barton
add bpy.data.version, needed for Python versioning code.
2014-08-13SpellingCampbell Barton
2014-08-11Fix T40766: Startup fails with UnicodeDecodeError on WindowsCampbell Barton
2014-07-19Defines: replace ELEM3-16 with ELEM(...), that can take varargsCampbell Barton
2014-07-02Added missing G_DEBUG_DEPSGRAPH flag entry in the bpy.app.debug ↵Lukas Tönne
getters/setters list.
2014-07-01Python: remove redundant castsCampbell Barton
2014-06-23T39690: Modifications to Blender's 'temp dir' system.Bastien Montagne
Current temporary data of Blender suffers one major issue - default 'temp' dir on Windows is never automatically cleaned up, and can end being quite big when used by Blender, especially when we have to store per-process data (using getpid() in file names). To address this, this patch: * Divides tempdir paths in two, one for 'base' temp dir (the same as previous unique tempdir path), the other is a mkdtemp-generated sub-dir, specific to each Blender instance. * Only uses base tempdir when we need some shallow persistance accross Blender sessions - and we always reuse the same filename (quit.blend...) or generate small file (crash reports...). * Uses temp sub-dir for heavy files like pointcache or renderEXRs (Save Buffer option). * Erases temp sub-dir on quit or crash. To get this working it also adds a working 'recursive delete' to BLI_delete() under Windows. Note that, as in current code, the 'recover render result' hack-feature that was possible with SaveBuffer option is still removed. A real renderresult cache feature will be added soon, though. Reviewers: campbellbarton, brecht, sergey Reviewed By: campbellbarton, sergey CC: sergey Differential Revision: https://developer.blender.org/D531
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-06-16Use ARRAY_SIZE to replace (sizeof(a) / sizeof(*a))Campbell Barton
2014-05-14Fix T40191: Misleading TypeError message when registering CollectionProperty ↵Bastien Montagne
wtihout kwarg "type". Turned up to be a cleanup of doc in that whole module...
2014-05-11Code cleanup: comment typosCampbell Barton
2014-05-07Remove redundant NULL checkCampbell Barton
2014-05-02Update parse_syntax_error() to Python 3.4x versionCampbell Barton
2014-05-01Code cleanup: remove unused kludge for Py/Win encodingCampbell Barton
2014-05-01Fix T31555: Username with special chars in Windows 7Bastien Montagne
At last! Could not check seriously on windows (though it was done during py patch process).
2014-05-01Include removal gave problems with windows, ifdef some back in for windows onlyCampbell Barton
2014-05-01Revert "Fix msvc 2013 compiler errors after the ingenious cleanup in ↵Campbell Barton
4ca67869cc7a." This reverts commit a47a4ef82f37428d391cc14a30fa611d6714e71d.
2014-05-01Fix msvc 2013 compiler errors after the ingenious cleanup in 4ca67869cc7a.Thomas Dinges
2014-04-30Code cleanup: remove unused includesCampbell Barton
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-04-30Fix T35176: Python fails with blend files from non-ASCII pathsCampbell Barton
Thanks to Tamito for updating the patch to support Freestyle!
2014-04-30Python: move to version 3.4x on all platformsCampbell Barton
2014-04-29Ignore user-preferences when inserting keys from PythonCampbell Barton
2014-04-26Code cleanup: use 'const' for arrays (python)Campbell Barton
2014-04-11Code cleanup: use boolCampbell Barton
2014-03-19Code cleanup: unreachable break/returnCampbell Barton
2014-03-05Alternative fix for T38753, use existing __file__ in namespaceTamito Kajiyama
2014-02-28PyAPI: correct warning with dynamic enumsCampbell Barton