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
2014-04-26Code cleanup: use 'const' for arrays (python)Campbell Barton
2013-10-03fix [#36924] Calling .define(...) on Macro subclass crashes Blender, if ↵Campbell Barton
subclass wasn't registered
2013-03-22code cleanup: shadowing, adjust type.Campbell Barton
2013-03-20code cleanup: use booleans for mesh and selection code.Campbell Barton
2013-03-15Add the possibility to define the translation context for py rna classes ↵Bastien Montagne
(operators, panels and menus). Thanks to Campell and Brecht for the reviews!
2013-02-05add python api docstring for 'bpy.types.Operator.bl_property'Campbell Barton
2013-02-05fix [#34113] operator_menu_enum() - Tooltip not showing descriptionsCampbell Barton
Python wasn't able to set 'OperatorType.prop', which is used by uiButGetStrInfo(). add 'bl_property' to python operators which is assigned to OperatorType.prop when registering. (api docs coming next)
2013-01-07code cleanup: warnings and use stdbool for bpy* funcs.Campbell Barton
2012-03-27style cleanup: py apiCampbell Barton
2012-02-05Code Cleanup: line length and use Py_ssize_t for PyC_AsArray utility function.Campbell Barton
2011-12-26formatting edits only to use more consisted styleCampbell Barton
2011-11-05documentation - brief descriptions for bpy api files.Campbell Barton
2011-10-23remove $Id: tags after discussion on the mailign list: ↵Campbell Barton
http://markmail.org/message/fp7ozcywxum3ar7n
2011-10-13formatting edits & remove debug print.Campbell Barton
2011-10-05rename rna OperatorTypeMacro --> OperatorMacro, since operators types are ↵Campbell Barton
just called Operator
2011-05-09minor cleanup, no functional changes.Campbell Barton
2011-03-19C, style changes (mostly white space edits), no functional change.Campbell Barton
2011-03-02move anim functions out of bpy_rna.c, its getting too big.Campbell Barton
2011-02-27doxygen: blender/python tagged.Nathan Letwory
2011-02-14python api renaming and added headers for some files which didnt have one, ↵Campbell Barton
no functionality change.
2011-01-07split BKE_utildefines.h, now it only has blender specific defines like GS() ↵Campbell Barton
MAKE_ID, FILE_MAXDIR, moved the generic defines to BLI_utildefines.h. no functional changes.
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-11pyrna: replace method for operators forwarding getattr/setattr access from ↵Campbell Barton
self.* to self.properties.*
2010-09-09- bugfix, operators were getting their properties registered twice.Campbell Barton
- operator properties are now converted into python property() class members which bypass the operator 'properties' member. self.properties.mysetting ... can now be written as ... self.mysetting - fix for error reloading rigify
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-13- remove WM_operatortype_exists since its almost the same as ↵Campbell Barton
WM_operatortype_find - hopefully fix reported problem with MSVC.
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-03-14remove unused includesCampbell Barton
2010-02-12correct fsf addressCampbell Barton
2010-01-19patch [#20724] Randomize Loc Rot Size py operator for B2.5Campbell Barton
written from scratch by Daniel Salazar (zanqdo). added own modifications. New property type bpy.props.FloatVectorProperty(), only difference with float is it takes a 'size' argument and optional 'default' sequence of floats. moved bpy.props.* functions out of bpy_rna.c into their own C file.
2010-01-16generic operator menu was searching for "type" and using the first enum ↵Campbell Barton
property if it wasnt found. this is too arbitrary and could break if roperty order is changed. store the property in the operator type that is to be used for menu and enum search func's. python function for searching operator enums on invoke. (just need dynamic python enums now) wm.invoke_search_popup(self)
2010-01-16remove duplicate code from operator/macro initializationCampbell Barton
2009-12-31remove python api cruft from custom operator registrationCampbell Barton
2009-12-31Macro registration using the normal rna registration methods (like operators).Martin Poirier
bpy.types.register(MacroClass) instead of bpy.ops.add_macro(MacroClass) The rest is unchanged. Also remove some now unused code for the old registration methods (there's still some remaining).
2009-12-30python macro operators didnt have a compatible draw function assigned. also ↵Campbell Barton
remove duplicate define.
2009-12-24* register operators like other classesCampbell Barton
* operators now return sets (converted into flags) * can't remove bpy_operator_wrap.c since macro's still use the custom register funcs
2009-12-05Support for the C Macro system in Python.Martin Poirier
Basic definition works like a python operator but you derive from "bpy.types.Macro" instead. Operators are added to the macro after it has been added with "bpy.ops.add_macro" through the class method "define" which takes an operator id and returns an OperatorMacroType (new RNA type) for which properties can then be defined to be passed to the operator when run. Example: http://blenderartists.org/~theeth/bf/macro.py Using this system, it should be easy to add an operator to the console that converts selected lines into a macro or even a more generic record macro system.
2009-11-29- access to a nurbs points was broken - sizeof(BPoint) vs sizeof(BPoint *) Campbell Barton
- renamed CurvePoint --> SplinePoint - renamed point.point --> point.co (less stupid, matches vertex.co) - access point.co was a 3D vector rather then a 4D vector with the Nurbs weight included. - rename point.weight --> point.weight_softbody, move point.point[3] --> point.weight - sorted RNA structs (for pedaticness only)
2009-11-29Draw function for operators (just like panels), used for the redo popup, ↵Campbell Barton
file selector and redo tool panel. Used for ply export & select pattern.
2009-11-23fixed some error reporting issues with calling operatorsCampbell Barton
2009-11-20use a metaclass to have operator attributes register and display in the ↵Campbell Barton
order defined.
2009-11-19operators were copying the properties from the rna operator into the class ↵Campbell Barton
instance. however this meant the invoke function could not modify properties for exec to use (unless it called exec directly after) since the popup for eg would re-instance the python class each time. now use the operator properties directly through rna without an automatic copy. now an operator attribute is accessed like this... self.path --> self.properties.path
2009-11-19added 'hidden' option for python defined rna props, means py operators can ↵Campbell Barton
use hidden properties so the popup wont show improved error message when bad args are given to propertyRNA funcs
2009-11-13arbitrary property and function support for rna properties (arrays and ↵Campbell Barton
collections), this means functions can be easily added. eg. scene.objects.link() object.constraints.new() mesh.verts.transform(...) mesh.faces.active PropertyRNA stores an StructRNA pointer where these can be defined.
2009-11-13F8 reload works again, script errors are printed but dont stop loading every ↵Campbell Barton
other script
2009-11-05- missing return valuesCampbell Barton
- more detailed exceptions (always give file:line incase the python exception doesnt) - fix some errors in the edit docs editing docs still fails, need to figure out why.
2009-11-02make python operator instances subclasses of the wmOperator when called.Campbell Barton
was subclassing the operator's type before. Removes the need for passing self.__operator__, can pass self directly.
2009-11-02last commit broke running python operatorsCampbell Barton
note that you can still set rna properties like this. bpy.data.__dict__["var"] = 1 print(bpy.data.var) but this is only stored for the python objects lifetime and not actually attached to blenders data
2009-10-31define operator properties in the class, similar to django fieldsCampbell Barton
# Before [ bpy.props.StringProperty(attr="path", name="File Path", description="File path used for exporting the PLY file", maxlen= 1024, default= ""), bpy.props.BoolProperty(attr="use_modifiers", name="Apply Modifiers", description="Apply Modifiers to the exported mesh", default= True), bpy.props.BoolProperty(attr="use_normals", name="Export Normals", description="Export Normals for smooth and hard shaded faces", default= True), bpy.props.BoolProperty(attr="use_uvs", name="Export UVs", description="Exort the active UV layer", default= True), bpy.props.BoolProperty(attr="use_colors", name="Export Vertex Colors", description="Exort the active vertex color layer", default= True) ] # After path = StringProperty(attr="", name="File Path", description="File path used for exporting the PLY file", maxlen= 1024, default= "") use_modifiers = BoolProperty(attr="", name="Apply Modifiers", description="Apply Modifiers to the exported mesh", default= True) use_normals = BoolProperty(attr="", name="Export Normals", description="Export Normals for smooth and hard shaded faces", default= True) use_uvs = BoolProperty(attr="", name="Export UVs", description="Exort the active UV layer", default= True) use_colors = BoolProperty(attr="", name="Export Vertex Colors", description="Exort the active vertex color layer", default= True)
2009-10-31change blender python interface for classes not to ise __idname__ rather ↵Campbell Barton
bl_idname since __somename__ is for pythons internal use. replacements... "__idname__" -> "bl_idname" "__props__" -> "bl_props" "__label__" -> "bl_label" "__register__" -> "bl_register" "__undo__" -> "bl_undo" "__space_type__" -> "bl_space_type" "__default_closed__" -> "bl_default_closed" "__region_type__" -> "bl_region_type" "__context__" -> "bl_context" "__show_header__" -> "bl_show_header" "__URL__" -> "_url"