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
2011-03-29use 'is None' rather then '== None' as suggested by python docs & mis-spelling.Campbell Barton
2011-03-25fix for incorrect prints with RNA errors (own fault, CONTAINER_RNA_ID was ↵Campbell Barton
incorrect) & close keymap file after running.
2011-03-23missed committing this beforeCampbell Barton
2011-03-22py/api registration:Campbell Barton
move calls to the classes register/unregister function into register_class() / unregister_class() and add docs. also other minor changes: - remove face sorting keybinding, was Ctrl+Alt+F, this is quite and obscure feature and face order normally doesn't matter, so access from Face menu is enough. - add commented out call to mesh.validate() in addon template since its useful to correct incomplete meshes during development.
2011-03-22fix for error printing class register error, remove an unneeded check.Campbell Barton
2011-03-21move script directories for internal blender scripts.Campbell Barton
ui/ --> startup/bl_ui op/ --> startup/bl_operators scripts/startup/ is now the only auto-loading script dir which gives some speedup for blender loading too. ~/.blender/2.56/scripts/startup works for auto-loading scripts too.
2011-03-21patch from Martin, call classes register/unregister functions.Campbell Barton
Modified to only do one lookup. from Martin: "Basically, what it does is allow you to add register and unregister class methods to rna types, this way you don't have to rely on module register/unregister methods to setup your types properly (and it makes them easier to move around when reorganizing code and easier to understand what a type does when reading code). This is especially nice for PropertyGroup classes that are added as properties to existing types, you can easily see in their register methods where they are added and removed in their unregister method. Obviously, those two methods are optional, so current code still works fine."
2011-03-18hide addon_utils in bpy.utils & tag/remove unused vars in recent commits.Campbell Barton
2011-02-28build system now exclude config-*, turtledemo when copying system python.Campbell Barton
also remove __pycache__ dirs when cleaning (new in python 3.2)
2011-02-28complete lazy loading of py modules to use to a reduced set of pythons ↵Campbell Barton
modules, gives ~40% speedup on cold & warm start (without netrender). - use own OrderedDictMini class, pythons collections.OrderedDict is overkill, 179 sloc. replaced with own, 11 lines. - remove code which stored the class file & line per RNA subclass, this was useful but would raise its own exception every time to generate a stack trace to get the class info so we could use of the class failed to register. the class stores its module & name which can be enough to find where it was defined.
2011-02-27lazy load modules for more scripts.Campbell Barton
2011-02-27lazy load pydoc module. move help() replacement into console code rather ↵Campbell Barton
then on startup since importing pydoc pulls in lots of other modules too.
2011-02-25pep8 cleanupCampbell Barton
2011-02-21move addon utilities into their own module, these were getting mixed between ↵Campbell Barton
bpy.utils and space_userpref.
2011-02-17pep8 cleanup and remove unused vars/importsCampbell Barton
2011-02-14py rna api: turn class.is_register into a class property rather then a class ↵Campbell Barton
method. eg: if MySybclass.is_registered: ...
2011-02-14SVN maintenance.Guillermo S. Romero
2011-02-11bpy.utils.register_module() generator could go into eternal loop.Campbell Barton
2011-02-11UI functions added to existing UI classes (operators adding their own menus ↵Campbell Barton
for eg), would stop the entire menu from drawing if they raised an exception. now print the exception and continue. Also added a verbose argument for bpy.utils.(un)register_module() to help test whats being registered.
2011-02-11use weak references for the internal metaclass typemap,Campbell Barton
this should help with blender leaking memory with python classes though the bug is still not fixed.
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-11patch [#25809] Auto-Registration as utility function.Campbell Barton
This removes auto-registration, committed by Martin r30961. Realize this is a contentious topic but Brecht and myself both would rather opt-in registration. TODO: - addons need updating. - class list will be modified to use weakrefs (should have been done for existing system too). - will move bpy.types.(un)register functions into bpy.utils.(un)register_class, currently including these functions in a type list is internally ugly, scripts which loop over types also need to check for these.
2011-02-01Pythons path functions - os.walk(). os.path.exists(). etc support bytes for ↵Campbell Barton
paths as well as strings, support this with blender/rna too. - bpy.data.*.load() functions were only accepting UTF-8 paths. - rna functions/properties now accept byte values rather then strings for file paths. - bpy.path.resolve_ncase now supports byte objects.
2011-01-15py api: bpy.path.abspath(), option to return relative to a path other then ↵Campbell Barton
the current blend file.
2011-01-15misc edits, no functional changesCampbell Barton
- enabling/disabling no longer prints in the terminal unless in debug mode. - remove 'header' struct from BLI_storage_types.h, from revision 2 and is not used. - Add GCC property to guardedalloc to warn if the return value from allocation functions isn't used.
2011-01-03recent change to keyframe menu broke BVH import, now don't use the operator ↵Campbell Barton
at all, instead assign the action manually. Also added bpy.path.display_name_from_filepath(), since filepaths are not ensured to be utf8. same as calling: os.path.splitext(os.path.basename(name))[0].encode("utf8", "replace").decode("utf8")
2011-01-01pep8 cleanupCampbell Barton
2010-12-23remove reload() from builtins since python3 no longer uses this.Campbell Barton
use imp.reload now. Should use import hooks but for now replace imp.reload with our own reload as the builtin reload was replaced before.
2010-12-19bugfix [#25290] Align on text gives a tracebackCampbell Barton
[#25284] Traceback error on "System Info" script - Align was only working on mesh objects, now operate on all objects, missing boundbox's are treated as single points. - obj.bound_box was returning all nan's for object types with no boundbox. - ENUM_FLAG type enums were showing no text when displayed in operator redo panel.
2010-12-18fix [#25262] Keyboard shortcut presets can't be made because of wrong folderCampbell Barton
New create option when getting a user resource for creating paths. bpy.utils.user_resource(type, path, create=False)
2010-12-11allow addons/modules path so extension authors can develop their own shared ↵Campbell Barton
modules.
2010-11-23error in own recent commitCampbell Barton
2010-11-22bugfix [#24805] bpy operator runs in wrong order or is ignored at allCampbell Barton
2010-11-20reloading addons wasn't working.Campbell Barton
2010-11-20- use relative imports for packagesCampbell Barton
- reload() has been removed from pythons builtins. use imp.reload() instead (still need to apply globally). - fixed own mistake, not ignoring 'filter_glob' as a keyword argument (broke fbx, obj, 3ds export)
2010-11-19fix for error in recent commit.Campbell Barton
2010-11-18bugfix [#22615] Opening a blend file in python (bpy.ops.wm.open_mainfile() ↵Campbell Barton
(r29489) [#22557] bpy.ops.wm.read_homefile() causes segfault (r29372)
2010-11-04fix to allow [#24009] to be fixed.Campbell Barton
WM_operator_poll() could fail in cases WM_operator_name_call() would succeed because calling the operator would setup the context before calling poll. this would result in python raising an invalid error or menu items being greyed out. now python can also check with an operator context: bpy.ops.object.editmode_toggle.poll('INVOKE_SCREEN')
2010-10-24== addons ==Luca Bonavita
- new (and temporary) directory addons_extern/ to store external projects addons
2010-10-07bugfix [#24155] Operator Cheat Sheet doesn't work properlyCampbell Barton
2010-10-04bugfix [#24087] Blender can not install add-ons unless running with root ↵Campbell Barton
priviledges now addon path is created using the same path functions and selecting where to save the startup.blend also made some minor changes to path handling funcs.
2010-10-03bugfix [#24116] UV layout exporting doesnt workCampbell Barton
in-fact this is unrelated to UV Layout script, just a missing check for an bad state.
2010-10-01bugfix [#24065] obj export (mtl image path)Campbell Barton
2010-09-25bugfix [#23978] Error installing addonCampbell Barton
2010-09-16Fix #23865: F8 reload scripts doesn't work with an addon enabled,Brecht Van Lommel
broken with bugfix for #23001.
2010-09-15bugfix [#23833] Console Errors (Keymaps)Campbell Barton
dont allow non-existing preset paths to be passed to the preset menu.
2010-09-14keyconfig updates/changesCampbell Barton
- use preset subclass with funcs for updating the keyconfig - keyconfig filenames are used for the UI names as with presets (so separation anymore) - keyconfig's are stored in the preset dir (scripts/cfg dir removed) - only the active keyconfig script is loaded - some bugfixes for saving keymaps - user interactions no longer saves keyconfigs too, I think this needs to be re-worked. developer note... multiple keyconfigs at once are not really needed now that they are stored & accessed directly in python. for now I left it alone but we could consider to remove this capability in the future.
2010-09-14button to remove presets.Campbell Barton
note: this is an option to the add preset operator which is a bit odd but easiest since these classes have all the info needed for removal as well.
2010-09-13bugfix [#23001] Addons do not unregister properly in Blender 2.5.3Campbell Barton
Now reloading the user defaults also unloads/loads addons, resetting the state to the one set in the user preferences. moved addon functions into bpy.utils - bpy.utils.addon_enable(name, default_set=True) - bpy.utils.addon_disable(name, default_set=True) - bpy.utils.addon_reset_all(name, default_set=True) the user preference operators now just wrap these.
2010-09-08addon improvements/fixesCampbell Barton
- better error reporting when an addon fails to load - upload an addon which loads partly but then fails (eg, module loads but class register fails) - bugfix addon loading, failier to load would leave _bpy_types._register_immediate = False - added which change on disk are reloaded when enabling. - bpy.path.module_names() now returns (module_name, module_path) pairs.