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
2020-05-13PyAPI: support PyGetSetDef when extending RNA typesCampbell Barton
Support extending properties as well as methods.
2020-05-13Cleanup: split RNA type extension methods into it's own APICampbell Barton
This isn't so closely related to the RNA API, it's a way to use the C/Python API to extend RNA types and can be in it's own file.
2020-02-20Cleanup: use named unsigned types in the Python APICampbell Barton
2019-04-29Cleanup: comments (long lines) in pythonCampbell Barton
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-02-23Cleanup: quiet undeclared variable warningCampbell Barton
Move bpy_context_module declaration to bpy_rna.h.
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
BF-admins agree to remove header information that isn't useful, to reduce noise. - BEGIN/END license blocks Developers should add non license comments as separate comment blocks. No need for separator text. - Contributors This is often invalid, outdated or misleading especially when splitting files. It's more useful to git-blame to find out who has developed the code. See P901 for script to perform these edits.
2018-02-28WorkSpace: UI filtering for add-onsCampbell Barton
Allows for each workspace to have it's own add-ons on display. Filtering for: Panels, Menus, Keymaps & Manipulators. Automatically applies to add-ons at the moment. Access from workspace, toggled off by default once enabled, add-ons can be white-listed. See D3076
2017-10-18Cleanup: Use const for RNA EnumPropertyItem argsCampbell Barton
Practically all access to enum data is read-only.
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
2016-07-23Cleanup: styleCampbell Barton
2016-01-06'users of ID' py API.Bastien Montagne
This mainly adds bpy.data.user_map() method, which goes over the whole Main database to build a mapping (dict) {ID: {users_of_that_ID}}. Very handy to check and debug ID usages, but could also be really valuable for py addons creating temporary scenes, or some exporters, etc. Note: current code in master's libquery misses some IDs (and reports some it should not, like nodetrees), this is fixed in id-remap but still needs serious review before going to master. This basically means that current bpy.data.user_map() **will not** report a complete and exhaustive state of dependencies between IDs. Should work OK in most cases though. Original work/idea comes from id-remap branch, was heavily reworked by @campbellbarton and myself for master. Reviewers: campbellbarton, sergey Differential Revision: https://developer.blender.org/D1678
2013-03-22code cleanup: shadowing, adjust type.Campbell Barton
2013-01-07code cleanup: warnings and use stdbool for bpy* funcs.Campbell Barton
2012-12-20Change region drawing callbacks to work much closer to how blender manages ↵Campbell Barton
them internally. - yes, this does break scripts, but the api is marked experimental. ED_region_draw_cb_activate() adds a callback to a region type whereas the api made it look like the callback was being added to the region instance. Use a class method on bpy.types.Space to manage region drawing, eg. was: self._handle = context.region.callback_add(draw_callback_px, args, 'POST_PIXEL') is now: self._handle = bpy.types.SpaceView3D.draw_handler_add(draw_callback_px, args, 'WINDOW', 'POST_PIXEL')
2012-10-26fix for crash when a python operator or render engine was freed in the C ↵Campbell Barton
code and then referenced from python. now further access in python gives an exception at the line when the freed data is accessed.
2012-09-15quiet -Wmissing-prototypes warnings, and enable this warning by default for ↵Campbell Barton
C with gcc. helps for finding unused functions and making functions static, also did some minor code cleanup.
2012-02-27use LIKELY/UNLIKELY macros for operations that run a lot.Campbell Barton
2012-02-17unify include guard defines, __$FILENAME__Campbell Barton
without the underscores these clogged up the namespace for autocompleation which was annoying.
2011-10-23remove $Id: tags after discussion on the mailign list: ↵Campbell Barton
http://markmail.org/message/fp7ozcywxum3ar7n
2011-10-17fix spelling mistakes in comments (and in some python error messages), ↵Campbell Barton
nothing to effect translations.
2011-09-30fix for crash generating messages.txt, I wasn't getting this crash because I ↵Campbell Barton
had 'WITH_PYTHON_SAFETY' enabled which was using different iterators (which dont crash), now there on by default. made headless and no-python configurations work again and added --factory-startup to doc building command.
2011-08-05ifdef out support for for python owning and freeing BPy_StructRNA because ↵Campbell Barton
this is only used for doc generation and it makes _every_ blender/python instance 4 bytes bigger - vertex/bezier point/object/scene/group etc.
2011-08-05pyrna - add own callable function type rather then using a standard python ↵Campbell Barton
method, gives small speedup drawing buttons since every layout.prop/col/operator/menu etc creates and throws away one of these.
2011-06-07disable the readonly state while rna property callbacks run.Campbell Barton
2011-06-02mathutils support for color arithmetic, also some minor whitespace edits. Campbell Barton
2011-05-28fixed "rather then" -> "rather than" typos all over the placeM.G. Kishalmi
2011-05-10remove some duplicate declarationsCampbell Barton
2011-04-03quiet various warnings, also disable -Wdouble-promotion with cmake since it ↵Campbell Barton
gives warnings with variable length args.
2011-03-03Py/RNA API: WITH_PYTHON_SAFETYCampbell Barton
compile time option which enables extra safety checks. since this is noticeably slower I rather not enable by default yet.
2011-03-03Py/RNA api:Campbell Barton
fix for crash when iterating over a collection which allocates the collection and frees on when finished. The ability for BPy_StructRNA to hold a reference to other PyObject's was added to support this.
2011-03-03Py/RNA api - real collection iterator Campbell Barton
Previously the api just converted the collection to a list and got the iterator from the list to return. This has the advantage that it uses minimal memory on large collections where before it would make an array. Though the main reason for this change is to support a bugfix for collections which free memory when they are done, this currently crashes the python api since once the list is built, the data is freed which is used by the list items in some cases (dynamic enums for eg).
2011-03-02align weakref list for rna (properties were using wrong pointer)Campbell Barton
2011-03-02move anim functions out of bpy_rna.c, its getting too big.Campbell Barton
2011-03-01Py/RNA Stability: don't allow python to reference freed ID's and crash.Campbell Barton
Second method for not having python crash blender on invalid access (ifdef'd out ATM, so no functional change). This uses a weakref list per ID, and invalidates all members of that list when the ID is freed. the list is not stores in the ID pointer but using a hash table since storing python in DNA data is not acceptable. This is more correct then the previous method but shows down execution of scripts significantly since its always adding and removing from lists when data is created and freed.
2011-03-01Py/RNA API test code to prevent crashing blender when python references ↵Campbell Barton
freed ID's. This uses pythons GC so its no overhead during runtime but makes removing ID's slower. Commented definition 'USE_PYRNA_INVALIDATE_GC' for now, so no functional change.
2011-03-01bpy/rna support for invalidating objects.Campbell Barton
access will raise an error.
2011-02-27doxygen: blender/python tagged.Nathan Letwory
2011-02-23py/rna api:Campbell Barton
ifdef'd out weakref for blender/py api, worth testing to see if it adds much overhead.
2011-02-23doxygen: prevent GPL license block from being parsed as doxygen comment.Nathan Letwory
2011-02-14python api renaming and added headers for some files which didnt have one, ↵Campbell Barton
no functionality change.
2011-02-11minor python register changes.Campbell Barton
- KeyingSetInfo classes are now collected like Panels, Operators etc so bpy.utils.register_module() can be used. - move bpy.types.register() to bpy.utils.register_class
2011-02-01fix for 2 segfaults running in background mode.Campbell Barton
- operators which reload G.main would crash blender if called from python and then accessed bpy.data.* - WM_read_homefile_exec was setting the contexts Scene to NULL as a signal for the event system, this didnt work in background mode, crashing when property update functions expected scene to be set.
2011-02-01workaround [#25845] Empty UI panelsCampbell Barton
- now writing to RNA is disabled when inside render() call. - disallow calling operators when writes are disabled. Rendering runs in a thread so running operators from the thread is not safe unless rendering becomes a blocking operator again.
2010-10-14UNUSED() macro so -Wunused-parameter can be used with GCC without so many ↵Campbell Barton
warnings. applied to python api and exotic.c, removed some args being passed down which were not needed. keyword args for new mathutils types were being ignored when they should raise an error.
2010-09-23- py/rna's path_resolve function was ignoring the index eg: ↵Campbell Barton
obj.path_resolve("location[1]") - corrected comment from previous commit
2010-09-10rewrote python IDProperty metaclass in C, this was a quick hack to get it ↵Campbell Barton
working. The reason this didnt work is all sibclasses of pythons type() or PyType_Type in C, have to have their size set to sizeof(PyHeapTypeObject) rather then sizeof(PyTypeObject) as you might expect. This is strange since its not a heap-class (defined in pythons runtime), but a static C type, so Im not sure about this, and cant find any documentation but it seems to work ok.
2010-09-02- new subclass for ID-Property based collections - this way add/remove/move ↵Campbell Barton
functions will only be shown for types that support it. - moved array attributes into array properties - saves 8 bytes per allocated non-array property.