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-022.5Ton Roosendaal
- after closing button (having used it), it sends empty mousemove for invoking new modal handler on same button. Don't know better solution for now, at least this way WM handles everything. :) - experiment: moved button handlers to area level, that way it respects handlers on higher hierarchical level, like moving area edges. Als interesting is that you can have a button active (texteditor) and use a similar button in other area. This can also be done on region level even. On todo: proper notifier events for redraw! Don't want all areas to draw on simple refreshes
2008-12-02Made PyRNA props iterable, so you can do things like...Campbell Barton
for ob in bpy.objects: print(ob.name) for i, lay in bpy.scenes["Scene"].layer: print('%d %d' % i, lay)
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-02Lots of stuff; couldn't commit in parts because of refactor work.Ton Roosendaal
* Changes in interface/ module This commit brings back the way how buttons/menus work under control of WM event system. The previous implementation extended usage of handlers and operators in an interesting but confusing way. Better to try it first according the design specs. :) Most obviously: - modal-handler operators are not stored anymore in regions/areas/windows. such modal handlers own their operator, and should remove it themselves. - removed code to move handlers from one queue to another. (needs review with brecht!) - WM fix: the API call to remove a modal handler got removed. This was a dangerous thing anyway, and you should leave that to the event system. Now, if a handler modal() call gets a cancel/finish return, it frees itself in event system. WM_event_remove_modal_handler was a confusing call anyway! Todo: - allow button-activate to refresh after using button - re-enable arrow keys for menus (do both after commit) - review return values of operator callbacks in interface_ops.c * Fixes in WM system - Freeing areas/regions/windows, also on quit, now correctly closes running modal handlers - On starting a modal handler, the handler now stores previous area and region context, so they send proper notifiers etc. * Other fixes - Area-split operator had bug, wrong minimal size checking. This solves error when trying to split a very narrow area. - removed DNA_USHORT_FIX from screen_types.h, gave warning - operators didn't get ID name copied when activated, needed for later re-use or saving.
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-02View2D - Some more tweaks...Joshua Leung
* Improved scrollbar drawing a bit more - only cosmetic lines * Added new view2d view-matrix api method to only use 'cur' coordinates on one axis, for use when drawing markers, etc. that need to be glued to a certain time but stay fixed in space in another dimension. This should improve the sitation for drawing markers * To aid testing, adding markers now sets the marker to have frame number as it's "name". This will need to be removed later...
2008-12-02mingw was giving errors...Campbell Barton
source\blender\python\intern\bpy_rna.c:1018: error: initializer element is not constant source\blender\python\intern\bpy_rna.c:1018: error: (near initialization for `pyrna_prop_Type.tp_get Assign get generic get/sets before PyType_Ready runs
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-02* after discussion with cambo on IRC, change the #ifndef's to #undefs instead:Nathan Letwory
Pre-Python 3.0 has strings default non-unicode, so checks and handling should be done so too.
2008-12-02* make sure there are no redefinitions (I'm using py2.5 and ie ↵Nathan Letwory
PyUnicode_Check define exists
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-01View2D - Zoom + More Scrollbar workJoshua Leung
* Added basic (non-modal) zoom operators that use a uniform scale factor, with zoom centered using the view center as scaling point. Use Scrollwheel up/down and Pad +/- to use this. * Added back the 'button'/bubble for the scrollbars. I've added dark lines on either end of it for some later work on zooming widgets. This is not the final form they'll take. I still need to decide how to handle those scrollbars which act as grid-markers too (showing timescale, etc.), before trying to integrate that with some fancy scrollbar drawing (rounded, etc.) Assorted changes: * Moved vertical scrollbar for Outliner to right hand side * Made Timeline use standard scrollbars, and turned on various clamping options * Fixed ortho-matrix corrections for scrollbars, and added pixel offsets * Made Timeline markers sit more snugly on the scrollbar. They were a bit far out... * Fixed memory leak with view2d keymaps not being freed when Blender exited
2008-12-01* Added checkmarks to 'table buttons' as used in RNA viewer. Helps to ↵Matt Ebb
distinguish them a bit better.
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-01View2D - Another WIP commitJoshua Leung
* Start of basic scrollbar drawing. This will be improved. Only Outliner shows these for now, as although the Timeline should show them, the old files didn't have them turned on. * Tidied up the view-panning operator - Fixed naming convention - Added user-adjustable properties (deltax, deltay in screenspace) * Added ctrl-scrollwheel (horizontal) and shift-scrollwheel (vertical) scroll operators. These use the view-panning code too. Unfortunately, I haven't been able to figure out why the WHEELMOUSEDOWN events don't seem to be triggering the operators!
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-30View2D - Initial commit of Pan-View OperatorJoshua Leung
* Moved View2D data from space-data to ARegion (aka regions). This has been done because drawing occurs in regions not areas anymore. The View2D struct is currently stored in the ARegion struct (not as pointer), given that most of the regions in use will be 2D anyway (only the 3d-view's "window" region is the exception). Added version patch code for outliner and timeline only for now. Headers are also likely to need this. * Added separate keymap for View2D operators. All regions that use View2D will need this added. This includes headers too. * Pan view operator (ED_View2D_OT_view_pan), currently works for Outliner and Timeline. Use MMB-drag as before. - It currently doesn't exposed any parameters for redo (via RNA-ID-Props), but only uses some customdata. Suggestions on what these parameters could be are welcomed. - I've yet to implement the necessary axis-locking features for this panning (which is required in Timeline for example to prevent vertical panning, which moves the markers out of view).
2008-11-30Added Group type to RNACampbell Barton
2008-11-30PyRNACampbell Barton
Can now assign RNA arrays from python lists of bools/ints/floats eg -> rna.scenes["Scene"].layer = [True] * 20 Also added exceptions when trying to set readonly properties.
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-29PyRNA - can write variables now (float, int, bool, enums, strings - but not ↵Campbell Barton
pointers, RNA limitation too). also fixed reading enums.
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-292.5: work on bringing back SpaceTime optionsTon Roosendaal
- RMB select, also with SHIFT - RMB tweak for translate - SHIFT+D dupli - BKEY border select/deselect - AKEY (de)select all - XKEY delete - GKEY grab Added some XXX comments for future todos, especially for when other spaces come back with time markers. Also added ED_util for putting in all to-be-cleaned cruft Context conflict: input methods for Markers can conflict with other spacetypes. It was solved in pre-2.5 with manually tweaking it all over, but I would prefer one keymap for all marker stuff. Needs some thinking... could be solved with a boundbox check for bottom part of 2d window. Tweak issue: both tweak styles are possible: - Hold mouse button, move, operator ends on mouse release - Hold mouse button, move, operator ends on mouse click Problem is that modally handled operators use fixed keymaps... like ESC, SPACE, ENTER, or press/release mousebutton for 'assign'. There's a lot to say for making this all consistant, or become part of 1 general keymap? Should also be possibe to define 'tweak' defaults for Tablet different than for mouse...
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