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
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.
2010-08-31rna support for passing dynamic sized arrays to rna functionsCampbell Barton
using this for object.vertex_groups.assign([index list ...], group, weight, mode)
2010-08-19- Properties from base classes are now registered too, this allows class ↵Campbell Barton
mix-in's to define properties. An example of how this is useful - an importer mixin could define the filepath properties and a generic invoke function which can run the subclasses exec for each selected file. - Panels and Menus now skip the property check when registering. - renamed _idproperties_ to _idprops_ in function names, function names were getting very long.
2010-08-02minor changes to Martni's commit 30961Campbell Barton
- removed the immediate option from C/api and now store in python only, when python loads modules it sets it to False. - unloading a module would clear the entire TypeMap for all modules, only remove the module types that is being unloaded. - added some checks for bad class registering, report errors rather then crashing.
2010-08-02RNA Types metaclass registrationMartin Poirier
See mailing list posts for details [1][2][3] Addons still need to be fixed; Campbell said he'd do it today. See any of the py files (outside netrender) in this commit for how to do it (it's rather simple). [1] http://lists.blender.org/pipermail/bf-committers/2010-February/026328.html [2] http://lists.blender.org/pipermail/bf-committers/2010-August/028311.html [3] http://lists.blender.org/pipermail/bf-committers/2010-August/028321.html
2010-07-23[#22488] Reloading scripts causes crashCampbell Barton
F8 key enabled again, useful for script UI development. - keying set freeing wasnt freeing from all scenes and the builtin list. - PointerProperty() cant refer to a removed python srna type (fixed in rigify and netrender). - Added a check for freeing a type used by a PointerProperty but its very slow, makes reloading take ~10sec. Only enabled this in debug mode for now. Netrender register() function isnt re-registering the property, probably because the module is cached by python and not re-run.
2010-03-16fix for nasty bug where registering properties would register them in the ↵Brecht Van Lommel
parent classes SRNA, made for confusing rigify args turning up in add sequencer adding collection. (commit 27433 by Campbell from render25 branch)
2010-02-27utility function pyrna_enum_value_from_id for getting the enum from a string ↵Campbell Barton
and raising an error if its invalid.