Revision 92cbb4b by Joshua Leung December 3, 2008, 09:06 (GMT) |
View2D - assorted wip changes (nothing to see here) |
Revision f4c581a by Campbell Barton December 3, 2008, 07:51 (GMT) |
missed saving a small change |
Revision cefae5e by Campbell Barton December 3, 2008, 07:45 (GMT) |
fix for [#18040] FBX writes incorrect relative paths. http://projects.blender.org/tracker/index.php?func=detail&aid=18040&group_id=9&atid=125 |
Revision aed82a1 by Campbell Barton December 3, 2008, 06:09 (GMT) |
Added Blender.sys.relpath(path, start='//') similar to os.path.relpath but uses blendfile path rather then the current working directory. Also use python exceptions rather then providing our own ones. |
Revision 2acd106 by Campbell Barton December 3, 2008, 02:03 (GMT) |
added a function to resolve case insensitive paths in BPySys and an option to use it in BPyImage - Useful when loading files with saved in windows on a *nix system. |
Revision 8f1847e by Brecht Van Lommel December 2, 2008, 23:45 (GMT) |
RNA: review of commits in the past days, check the diffs for the many small changes, but the two bigger ones are: * Sensors and controllers now use inheritance, rather than pointing to the data in a separate struct. Had to add some new RNA define functionality to support this better. * DNA_meta_types.h was marked as done but still missing many things, now completed. |
Revision 28786f5 by Martin Poirier December 2, 2008, 21:29 (GMT) |
Retarget bug: missing angle cost on last bone. |
Revision d27c9f9 by Ton Roosendaal December 2, 2008, 18:49 (GMT) |
2.5 - 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 |
Revision 6a6b386 by Campbell Barton December 2, 2008, 15:27 (GMT) |
Made PyRNA props iterable, so you can do things like... for ob in bpy.objects: print(ob.name) for i, lay in bpy.scenes["Scene"].layer: print('%d %d' % i, lay) |
Revision 9f27be3 by Campbell Barton December 2, 2008, 14:36 (GMT) |
Added RNA functions from PyRNA * 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. |
Revision 5490897 by Ton Roosendaal December 2, 2008, 14:22 (GMT) |
Lots of stuff; couldn't commit in parts because of refactor work. * 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. |
Revision c4fe6d0 by Joshua Leung December 2, 2008, 10:10 (GMT) |
RNA - Wrapped a few more simple Object transforms. Note: Rotations are still exposed directly in radians. We should probably do some wrapping around this, perhaps at UI-level? |
Revision 628d701 by Joshua Leung December 2, 2008, 09:43 (GMT) |
View2D - Some more tweaks... * 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... |
Revision f8d5883 by Campbell Barton December 2, 2008, 09:35 (GMT) |
mingw was giving errors... sourceblenderpythoninternbpy_rna.c:1018: error: initializer element is not constant sourceblenderpythoninternbpy_rna.c:1018: error: (near initialization for `pyrna_prop_Type.tp_get Assign get generic get/sets before PyType_Ready runs |
Revision 6780c0b by Hamed Zaghaghi December 2, 2008, 01:05 (GMT) |
* rna_property completed 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. |
Revision accfa06 by Nathan Letwory December 1, 2008, 23:38 (GMT) |
* after discussion with cambo on IRC, change the #ifndef's to #undefs instead: Pre-Python 3.0 has strings default non-unicode, so checks and handling should be done so too. |
Revision d1e75c2 by Nathan Letwory December 1, 2008, 22:20 (GMT) |
* make sure there are no redefinitions (I'm using py2.5 and ie PyUnicode_Check define exists |
Revision 89e8fa2 by Maxime Curioni December 1, 2008, 21:30 (GMT) |
The GL-based renderer was removed. Freestyle now uses Blender's internal renderer to raster strokes. The render generated from Freestyle's data is currently stored in the original scene's render structure ( as 'freestyle_render'): when the render database is generated, the scene's geometrical data is first imported into Freestyle and strokes are calculated. The generated strokes are used to create a Blender scene, rendered independently. The render result is used in the rendering loop. The final rendering is performed the same way edge rendering is, in a function ('freestyle_enhance_add') operating on each individual render part. Freestyle strokes are only included if the toggle button "Freestyle" (in the 'Output' panel) is active and if the "Freestyle" render layer is also selected. Freestyle's panel appears when the toggle button 'Freestyle' is active. IMPORTANT: as of now, rendering ONLY works when OSA is disabled and when Xparts = Yparts = 1. If these settings are not set, a bogus image will be created. To make the render happen, many modifications had to be made: - the Canvas::Draw and Operators::create methods no longer render strokes. They only generate shading and locational information. - a BlenderStrokeRenderer class was added to turn Freestyle's strokes into a Blender scene. Basically, the scene consists of strokes in their projected image 2D coordinates and an orthographic camera centered in the middle of the corresponding canvas. The scene is rendered using vertex colors, in shadeless mode (therefore, no lamp is needed). BlenderStrokeRenderer uses the old GLTextureManager to load textures (as required by the StrokeRenderer class), even though stroke textures are probably not supported (not tested). After the scene is rendered, it is safely and automatically discarded. - AppCanvas' code was greatly reduced to the bare minimum. The former AppCanvas would use an OpenGL-based back buffer and z buffer to determine the scene's color and depth information. In the future, this data will be determined from the corresponding render passes. Currently, the integration is not achieved so all style modules using depth/color information are sure to fail. - before, Freestyle needed an OpenGL context to determine the camera's information and to compute the view map. As of now, the modelview and projection matrices are fully determined using data provided by Blender. This means both perspective and orthographic projections are supported. The AppGLWidget will very soon be removed completely. |
Revision 23a77e7 by Andrea Weikert December 1, 2008, 21:23 (GMT) |
RNA * 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 :) |
Revision 31ffe5b by Juho Vepsalainen December 1, 2008, 21:19 (GMT) |
RNA: Added missing *srna's to curve functions. |
|
|
|


Master Commits
MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021