Revision 2c9d22f by Nicholas Bishop December 30, 2012, 18:28 (GMT) |
Add BLI_buffer, an alternative to BLI_array BLI_buffer is a dynamic homogeneous array similar to BLI_array, but it allocates a structure that can be passed around making it possible to resize the array outside the function it was declared in. |
Revision fc442db by Nicholas Bishop December 30, 2012, 18:27 (GMT) |
Add DNA/RNA/BKE infrastructure for dynamic-topology sculpt mode * Add a detail_size field to the Sculpt struct, two new sculpt flags, and a Mesh flag for dynamic-topology mode; that's it for file-level changes needed by dynamic topology * Add RNA for the new DNA field and flags * Add a new icon for dynamic-topology created by Julio Iglesias. TODO: update the icon for the new SVG icon format * Add a SculptSession function for converting from BMesh to Mesh, handles reordering mesh elements and setting face shading |
Revision 31f978c by Nicholas Bishop December 30, 2012, 18:26 (GMT) |
Move layer displacements from SculptUndoNode to PBVHNode * This doesn't make much difference for regular mesh/multires sculpting, but for dynamic topology sculpting the undo stack isn't split up by PBVH nodes, so it's more convenient to store the layer data in PBVH nodes. * Note that the life cycle of the layer displacement data is unchanged -- it's only valid during a stroke with the layer brush, gets free'd when the undo step ends. |
Revision ec25854 by Nicholas Bishop December 30, 2012, 18:25 (GMT) |
Code cleanup: move PBVH/PBVHNode structs into new header file |
Revision d383c32 by Nicholas Bishop December 30, 2012, 18:24 (GMT) |
Add GPU_buffers support for drawing dynamic topology nodes The GPU interface for PBVH drawing gets a new pair of build/update buffers functions for drawing BMFaces and BMVerts. TODO: the diffuse color is hardcoded to 0.8 gray rather than using material color. TODO: only VBO drawing is implemented, no immediate mode. |
Revision 2e9cb31 by Nicholas Bishop December 30, 2012, 18:24 (GMT) |
Add BMLog for efficiently storing changes to vertices and faces The BMLog is an interface for storing undo/redo steps as a BMesh is modified. It only stores changes to the BMesh, not full copies. Currently it supports the following types of changes: - Adding and removing vertices - Adding and removing faces - Moving vertices - Setting vertex paint-mask values - Setting vertex hflags |
Revision 1b4b5f9 by Nicholas Bishop December 30, 2012, 18:23 (GMT) |
Disable fall through to global undo from paint/sculpt undo Undoing/redoing in sculpt and other paint modes should only use the mode-specific undo, not global undo. It is now consistent with edit mode and avoids tricky interaction between the two systems. |
Revision 66e70e6 by Nicholas Bishop December 30, 2012, 18:23 (GMT) |
Add function to find closest point in triangle to another point New function is closest_to_tri_v3() in BLI_math_geom. |
Revision 2d39e464 by Nicholas Bishop December 30, 2012, 18:22 (GMT) |
Add BM_edge_calc_squared_length() query function Same as BM_edge_calc_length(), but avoids square root for cases where only comparison is needed. |
Revision a881109 by Nicholas Bishop December 30, 2012, 18:20 (GMT) |
Import the RangeTree library into extern RangeTree is a simple C++ tree set for storing non-overlapping scalar ranges. Original source from: https://github.com/nicholasbishop/RangeTree Also update the build systems to include RangeTree. |
Revision feb0d1d by Brecht Van Lommel December 30, 2012, 18:17 (GMT) |
Fix crash in syntax color code when drawing a text editor with no text. |
Revision e54b95d by Campbell Barton December 30, 2012, 15:40 (GMT) |
optimization for text drawing: - dont set the color for each character, check if it changes from the previous one. - dont memcpy text into a null terminated string to draw, instead rely on the length argument to BLF_draw(). |
Revision 3de85a8 by Campbell Barton December 30, 2012, 15:16 (GMT) |
style cleanup: casts, some casts had odd formatting, but very few. Style checker script detects this now so easy to detect this if new code is added that doesnt follow blenders style. |
Revision 82d6b17 by Ton Roosendaal December 30, 2012, 14:31 (GMT) |
More trackpad woes: Rotate with two-finger trackpad swipes should follow same principle as for panning. This is first commit - for clarity. Remaining issue is that for each system preset (in your OS) blender should work as you expect too... pan, rotate and zoom gestures might need each an own direction preset. Might be also messy, but then things can at least work for everyone. Thinking it over and testing more now. |
Revision f62fc79 by Sergey Sharybin December 30, 2012, 13:01 (GMT) |
16 bit PNG write support This commit adds a support of saving 16bit PNG files. Alpha for such files would be premultiplied, would be corrected with an upcoming alpha premul cleanup (it's not the only format which will output 16bit image with premul alpha). |
Revision fde101c by Ton Roosendaal December 30, 2012, 10:38 (GMT) |
Revert change from Jens, wrong pointer check in the code. That change made all scrollwheel events be handled as if it was a swipe gesture. Old style mouse wheel didn't work anymore. This version should work for everyone, but we need more mac testers :) |
Revision b3d3652 by Brecht Van Lommel December 30, 2012, 10:37 (GMT) |
OSL Templates: remove unnecessary stdosl.h include. |
Revision f7e8ffd by Thomas Dinges December 30, 2012, 03:11 (GMT) |
OSL Templates: * Add 3 simple templates: ** empty_shader.osl: A basic shader declaration to start with ** wireframe.osl: Simple wireframe shader ** noise.osl: Simple noise shader, with 3 noise types. |
Revision 398da25 by Thomas Dinges December 30, 2012, 02:51 (GMT) |
OSL Syntax Highlighting: * Added the remaining shader types * Some comment and link fixes. |
Revision 3395594 by Campbell Barton December 30, 2012, 01:39 (GMT) |
add templates menu for OSL, use preprocessor directive color for decorators in python. |
|