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-05-18UI: errors in buttons now show in info reportCampbell Barton
Mistakes in button expressions were previously only printed to the console.
2014-04-30Python: move to version 3.4x on all platformsCampbell Barton
2013-01-07code cleanup: warnings and use stdbool for bpy* funcs.Campbell Barton
2012-12-06bump python requirement to 3.3Campbell Barton
2012-11-05hopefully fixes building on msvc, also some minor header editsCampbell Barton
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-05-09Python/context: python could get invalid bpy.data in scene update handler afterBrecht Van Lommel
undo. The way this got updated from the context is a bit unreliable, and for handlers the update couldn't happen because there is no context passed in. Now it's updated from setup_app_data, which is where the change actually happens. I left in the other updates to be sure but they should not be needed anymore.
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-08-20fix for crash when loading a file from a script, and executing user modules ↵Campbell Barton
in the newly loaded file.
2011-03-12py/rna: BPy_reports_to_error() now takes the exception type as an argument ↵Campbell Barton
and returns -1 as an error value
2011-03-09- correct python3.1 warning message.Campbell Barton
- for new shadow only enum, use humanly readable RNA enum values. - update cmake unix example for custom python.
2011-03-07Drop support for python 3.1.Campbell Barton
for building py3.2 on *nix see: http://wiki.blender.org/index.php?title=Dev:2.5/Doc/Building_Blender/Linux/Troubleshooting#Python also fixed possible buffer overrun with getting the fake filepath for a blender textblock.
2011-02-27doxygen: blender/python tagged.Nathan Letwory
2011-02-23doxygen: prevent GPL license block from being parsed as doxygen comment.Nathan Letwory
2011-02-23remove unused functions,Campbell Barton
note: BPY_class_validate() could come in handy later if we need to check classes for properties/functions but for now there is no point in keeping it in.
2011-02-14python api renaming and added headers for some files which didnt have one, ↵Campbell Barton
no functionality change.
2011-02-13fix for warnings from Sparse static source code checker, mostly BKE/BLI and ↵Campbell Barton
python functions. - use NULL rather then 0 where possible (makes code & function calls more readable IMHO). - set static variables and functions (exposed some unused vars/funcs). - use func(void) rather then func() for definitions.
2010-12-31update python api with changes from Joshua's commit r33917. translate ↵Campbell Barton
reports into python errors.
2010-09-01bugfix [#23285] Exporters not available whel using special characters in ↵Campbell Barton
path name - ID properties now suopport non utf-8 strings for their values but not their keys. - moved utility functions into py_capi_utils.c from bpy_utils and bpy_rna. - import/export paths have to be printed with repr() or %r, so non utf-8 chars are escaped.
2010-08-14- PyLineSpit() - used to print the filename and line number for internal ↵Campbell Barton
errors now works when executing class functions in a module. - replaced PySys_GetObject("modules") with PyImport_GetModuleDict() - use defaults for keymap import/export rather then setting the same value every time from the UI scripts.
2010-03-22spaces -> tabs, (4 spaces == 1 tab, only for white space preceding text)Campbell Barton
2010-02-12correct fsf addressCampbell Barton
2010-02-01bpy.props.IntVectorProperty & BoolVectorPropertyCampbell Barton
2009-12-31remove python api cruft from custom operator registrationCampbell Barton
2009-09-03remove Py_CmpToRich (copy of py3.0 function), instead only support == and != ↵Campbell Barton
for PyRNA and KX_PySequence types. mesh1 > mesh2 # will raise an error.
2009-08-10fix for build problem with audiospace and implicit declaration.Campbell Barton
2009-08-10Wrap message with " as the ' was giving issues.Guillermo S. Romero
2009-08-10remove python2.x supportCampbell Barton
2009-08-07bpy_context_set and bpy_context_clear to replace a number of functions (some ↵Campbell Barton
were not always called causing bugs). fix for a leak when trying to run a text with a syntax error too.
2009-07-19Python operatorsCampbell Barton
- simplified C operator API bpy.__ops__ since its wrapped by python now. - needs the class to have an __idname__ rather then __name__ (like menus, headers) - convert python names "console.exec" into blender names "CONSOLE_OT_exec" when registering (store the blender name as class.__idname_bl__, users scripters wont notice) - bpy.props.props ???, removed
2009-06-14Blender/Python APICampbell Barton
Send the full python stack trace to the reporting api, added BPY_exception_buffer which temporarily overrides sys.stdout and sys.stderr to get the output (uses the io module in py3 StringIO in py2 to avoid writing into a real file), pity the Py/C api has no function to do this. fix for crash when showing menu's that have no items.
2009-05-25Store the context for python in a static variable with assessor functions - ↵Campbell Barton
BPy_GetContext/BPy_SetContext, Still not happy with this in the long term but its less problematic then storing the context in pythons namespace which couldn't be set before importing modules. This might fix a crash quite a few people have reported (but I cant reproduce).
2009-04-19RNA: Generic Type RegistrationBrecht Van Lommel
The Python API to define Panels and Operators is based on subclassing, this makes that system more generic, and based on RNA. Hopefully that will make it easy to make various parts of Blender more extensible. * The system simply uses RNA properties and functions and marks them with REGISTER to make them part of the type registration process. Additionally, the struct must provide a register/unregister callback to create/free the PanelType or similar. * From the python side there were some small changes, mainly that registration now goes trough bpy.types.register instead of bpy.ui.addPanel. * Only Panels have been wrapped this way now. Check rna_ui.c to see how this code works. There's still some rough edges and possibilities to make it cleaner, though it works without any manual python code. * Started some docs here: http://wiki.blender.org/index.php/BlenderDev/Blender2.5/RNATypeRegistration * Also changed some RNA_property and RNA_struct functions to not require a PointerRNA anymore, where they were not required (which is actually the cause of most changed files).
2009-04-11Added back importing UI scripts rather then running,Campbell Barton
The bug was todo with bpy.data and bpy.types becoming invalid, temporary fix is to re-assign them to the bpy module before running python operators or panels. will look into a nicer way to get this working.
2009-04-01Python Panels WIPCampbell Barton
- Register python panels - Added a generic class checking function BPY_class_validate() for panels/operators. - No button drawing yet Brecht, Added RNA_enum_value_from_id() and RNA_enum_id_from_value() to rna_access.c to do lookups between identifiers and values of EnumPropertyItem's, Not sure if these should go here.
2009-03-21get rid of warnings, fix for a refcount errorCampbell Barton
2009-03-202.5Ton Roosendaal
Makes older python's compile.
2009-03-19* removed warnings and fixed some python refcount errorsCampbell Barton
* operator class names - Changed 'name' to '__label__' (since __name__ is already used for the class name) - Changed 'properties' to '__props__' * added a PyObject_GetAttrStringArgs(), utility function which Id like to see in pythons C api. PyObject_GetAttrStringArgs(pyob, "someattr", "foo", "bar") /* pyob.someattr.foo.bar */
2009-03-02* errors in bpyui draw scripts were segfaultingCampbell Barton
* added PyLineSpit(), useful for debugging so you can easily find the line of the python script running.
2009-02-28Python experimental UI APICampbell Barton
Can draw panels in the scripts space containing RNA and operator buttons. * Added bpyui.register() so scripts can draw buttons and panels into the scripts space type. * wrapped drawBlock, drawPanels and matchPanelsView2d * Operator buttons take a python dictionary used to set the button defaults. * BPY_getFileAndNum utility function to get the filename and line number python is currently running.
2008-12-28PyOperator invoke function now receives the wmEvent and default properties ↵Campbell Barton
as 2 python dictionary args. the Python invoke function can then edit the properties based on the event, once its finished the properties are copied back to the operator. python exec and invoke functions can now return RUNNING_MODAL, CANCELLED, FINISHED, PASS_THROUGH flags Still need to look into how python operators can make use of invoke/exec for a practical case. (Need to bring back the popup menu's)