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
2008-12-02Added RNA functions from PyRNACampbell Barton
* RNA_property_enum_value * RNA_property_enum_identifier To get an enum string from a value and a value from an enum. BPy_StructRNA types (objects, meshes, images etc) can now be used as dictionary keys.
2008-12-02RNA - Wrapped a few more simple Object transforms.Joshua Leung
Note: Rotations are still exposed directly in radians. We should probably do some wrapping around this, perhaps at UI-level?
2008-12-02* rna_property completedHamed Zaghaghi
CAUTION: some defines like PROP_INT in DNA_property_types.h are the same as enums in RNA_types.h, and may be encounter hidden errors in future.
2008-12-02RNAAndrea Weikert
* DNA_packedFile_types: added rna definitions for packed files * also experimentally filled in correct struct 'PackedFile' in image rna for testing. * updated MSVC projectfiles (also for rna_curve.c and rna_vfont.c) Note: I removed PackedFile->flags, I did grep through source and a complete recompile of blender trunk svn without them too, so they obviously aren't needed anymore. A bit of cleaning up :)
2008-12-02RNA: Added missing *srna's to curve functions.Juho Vepsalainen
2008-12-02* add debug symbols when building BF_DEBUG=TrueNathan Letwory
2008-12-01RNA: Curves and VFontJuho Vepsalainen
Implemented RNA wrappers for curves and VFont. Only issue I could not yet solve is related to struct CharInfo curinfo; . This particular line proved to be hard to wrap and I therefore marked it as a TODO should someone want to fix this issue. I also cleaned up makesrna.c a bit by unifying brush/meta parts under one call just the way it is done in the case of other wrappers.
2008-12-01PyRNA structs and properties can now be subtyped to add functionality in python.Campbell Barton
rna_actuator.c was missing an enum
2008-12-01* ray_mirror naming for property groupingNathan Letwory
2008-12-01RNA:Juho Vepsalainen
Implemented RNA wrapper for ModifierData. Note that actual interface to access data of any specific modifier is still missing. I also marked a couple of parts as TODO that should be reviewed to decide whether or not to expose those specific parts via RNA.
2008-12-01RNA: brush wrappingJuho Vepsalainen
Wrapped most of brush. Brush is still missing a link to texture and to BrushClone. Also PAINT_TOOL_DRAW etc. flags found on DNA_brush_types.h need to be associated to a brush somehow. Currently they are linked to a brush via ImagePaintSettings. Also changed identifiers in metaball wrapping to conform with the standards.
2008-12-01RNAWillian Padovani Germano
* Tiny updates/fixes to Ipo wrapping.
2008-12-01RNAWillian Padovani Germano
- Minor updates to Camera and start of Ipo (+ IpoDriver and IpoCurve) wrappings.
2008-12-01* added rna_world with porperties of two first panel in the current UIHamed Zaghaghi
2008-11-30RNA: Support for Metaballs and Metaelements. I did not figure out a way to ↵Juho Vepsalainen
test latter but hopefully it works as well.
2008-11-30* changed NULL properties into UnknownPropertyHamed Zaghaghi
* added rna_property.c and rna_actuator * enabled access to properties and actuators from object Note that because we have RNA_Property in the RNA itself, you can find properties in gamelogic of and object under the name of RNA_GameProperty
2008-11-30RNA:Brecht Van Lommel
* DNA_image_types.h done, except for some properties not being editable.
2008-11-30RNAAndrea Weikert
* DNA_lattice_types: added rna definitions for lattice u,v,w and some flags * updated MSVC projectfiles
2008-11-30RNABrecht Van Lommel
* DNA_radio_types.h: done. (patch by Jorge Bernal). Also adds some #defines in the radiosity DNA since it was using hardcoded values. * Added an "UnknownType" which has no properties, useful as a placeholder for pointers that have no defined type yet. * Sort a few lists in the code alphabetically.
2008-11-30* controller structs, bController, bExpressionCont and bPythoncont ↵Hamed Zaghaghi
RNFied\n*controllers are available in objects\n* some typos in rna_sensor
2008-11-30PyRNA epydoc style docstrings.Campbell Barton
examples... RNA Lamp: Lamp ============== @ivar rna_type: RNA type definition. *readonly* @type rna_type: PyRNA PointerProperty @ivar name: Unique datablock ID name. (22 maximum length) @type name: string @ivar adapt_thresh: Threshold for Adaptive Sampling. in (0.000, 1.000) @type adapt_thresh: float @ivar area_shape: Shape of the Area lamp @type area_shape: enum in [SQUARE, RECTANGLE] @ivar area_size: Size of the area of the Area Lamp. in (0.000, 100.000) @type area_size: float @ivar area_sizey: Size of the area of the Area Lamp. in (0.000, 100.000) @type area_sizey: float - snip RNA Object: Object ================== @ivar rna_type: RNA type definition. *readonly* @type rna_type: PyRNA PointerProperty @ivar name: Unique datablock ID name. (22 maximum length) @type name: string @ivar data: Object data. *readonly* @type data: PyRNA PointerProperty @ivar fake_user: Saves this datablock even if it has no users @type fake_user: bool @ivar library: Library file the datablock is linked from. *readonly* @type library: PyRNA PointerProperty @ivar loc: in (-inf, inf) @type loc: float[3]
2008-11-30scons build dir was assumed to be relative, this isn't always the case. ↵Joseph Eagar
also, defined BF_PROFILE_FLAGS for win32-ming.
2008-11-30completed, remaining sensors added, random, radar, message, joystick and others Hamed Zaghaghi
2008-11-303 another sensors added: delay, actuator, porpertyHamed Zaghaghi
2008-11-30Added Group type to RNACampbell Barton
2008-11-30mistake in comparing pointers. (causing memfree prints)Campbell Barton
2008-11-30RNA: some fixes for lamp UI text. (Michael Fox)Brecht Van Lommel
2008-11-30RNABrecht Van Lommel
* Added more DNA_color_types.h, starting from patch by Sebastian Skejø. What's missing is write access to some things like point location, hard to retrieve the CurveMapping for proper update still.. * Added all datablocks as ID pointer in Main already, now only have to change the type from ID to the specific type. Also added filename to Main, which is basically the only non-internal property. * Fixed setting shadow buffers size in lamps, also ensured it to be a multiple of 16.
2008-11-30* no write access to bScreen and ScrArea and suchNathan Letwory
- maybe this will be phased out anyway, but might be handy for querying though.
2008-11-30added all sensor types without their properties and full RNAfy bNearSensor, ↵Hamed Zaghaghi
bMouseSesnsor, bTouchSensor, bAlwaysSensor
2008-11-29RNAWillian Padovani Germano
Adding support for Cameras. Work in progress, I'm still learning about RNA.
2008-11-29RNABrecht Van Lommel
* Fix sensor data pointer code, also made sensor type non editable, would need to do more work than just setting the type. * Fix a fairly obscure bug related to inheritance and sorting. * Complete DNA_ID.h wrapping, just a few extra properties and the Library struct, most of this is internal.
2008-11-29more rna_sensor codesHamed Zaghaghi
2008-11-29* Fix Makefiles to compile python.Brecht Van Lommel
* Tweak SConscript priorities to link ed_util. * Added RNA_struct_is_ID function for python.
2008-11-29* scrarea vertsNathan Letwory
2008-11-29RNABrecht Van Lommel
* Added more lamp properties. (patch by Michael Fox) * Fix a number of warnings in the RNA code. * Converted DOS line endings to UNIX. * Added some information on defining ID structs, and fixed use of "ID" inheritance for some non-ID structs. * Added text on naming conventions to the RNA documentation, and applied it to the current code. http://wiki.blender.org/index.php/BlenderDev/Blender2.5/RNA#Naming_Conventions
2008-11-29* more work on screenNathan Letwory
2008-11-29add initial codes for rna_sensorsHamed Zaghaghi
2008-11-29* start RNA_screenNathan Letwory
* nicer RNA names for NodeTree and Node
2008-11-28* add diffuse shader properties for materialNathan Letwory
2008-11-28* RNA for raytrace mirror properties.Nathan Letwory
2008-11-27* make sure Material and bNodeTree datablocks show up properly in RNA Viewer.Nathan Letwory
- documentation was a bit outdated and missing a step, so I updated http://wiki.blender.org/index.php/BlenderDev/Blender2.5/RNA#Struct to reflect the current state.
2008-11-27* add beginning of Material RNA and Nodetree+Node RNANathan Letwory
2008-11-27Added access for start/end frames in RNA. Joshua Leung
2008-11-27RNABrecht Van Lommel
* Added support for auto generating enum properties that are defined as bitflags mixed with other flags (use for shadow type in la->mode now).
2008-11-27RNABrecht Van Lommel
* Made auto collection wrapping work for ** arrays. (Mesh.mats, still points to ID since there is no Material yet). * Added sorting of RNA structs/properties before writing.
2008-11-24RNABrecht Van Lommel
* Disable editable pointers for now, difficult to support well. * Swap parameters in RNA_access.h functions to make it more consistent. * Rename rna members for operators to wmOperatorType.srna, and wmOperator.ptr, to make the distincton a bit clearer. • Removed the RNA_int_default and similar functions, they're too confusing. RNA_property_is_set can still be used to achieve the same goal. * Add functions to create RNA pointers. Some example code for RNA data access and operator properties: http://wiki.blender.org/index.php/BlenderDev/Blender2.5/RNAExampleCode
2008-11-24RNABrecht Van Lommel
* Wrap most user editable data in DNA_mesh_types.h and DNA_meshdata_types.h. Still needs to be improved in some areas though, especially how to deal with data layers (expose per element or as array, or both?), and data in face corners (bmesh type data structures are more logical here). Tweaks to RNA defining to make some cases easier: * Added range callback function for int/float. * Added 'skip' callback for listbase and array iterators to skip items in the collection. * Extra error print when calling wrong define_property_*_sdna functions. * Also made button code respect non_editable flag, is quick change though, need to add support for properly graying out etc.
2008-11-21RNABrecht Van Lommel
* Added RNA for operators. This still uses ID properties internally, but through the RNA API now. The OP_get/set_* API that was used is replaced by the RNA API. Currently RNA properties for operators are defined at runtime since it means operator registration can be done in a single function. * Changed the existing operators to use this system, I haven't defined user interface names yet though. I also think there need to be some conventions on which properties to expose to make these operators usable in macros, for example if mouse coordinates should be stored or not. * When using ID properties through defined RNA properties, it now checks that the ID property actually matches the RNA property and removes/overwrites it otherwise. This ensures that you can safely get/set arrays for example without having to worry that some external thing may have changed the length. * Documentation now has some information on RNA + ID properties. http://wiki.blender.org/index.php/BlenderDev/Blender2.5/RNA
2008-11-21RNABrecht Van Lommel
* More ID property support. What was already possible was showing ID properties as RNA properties. Now it is possible to define RNA properties and have an ID property automatically created the first time it is set (if not set it retuns the default). * Added support for defining RNA structs and properties at runtime. This is useful for python and plugins, and could also be used for operators, not sure yet what is best there, they could be done in preprocess for speed, but not sure how to do that while keeping operator registration a single function. * Added quick functions to get/set properties based on names, to be used for operators. * Added some simple support for inheritance, was already doing this but having it as a feature simplifies things. Two things were added for this: when defining a struct you can give a 'from' struct whose properties will be copied, and structs like ID, operator, modifier, can define a refine callback that will return the more specific type of the struct like ID -> Object, Mesh, .. . * Added simple windowmanager wrap with only the registered operators list, used for testing RNA for operators.