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
path: root/source
AgeCommit message (Collapse)Author
2012-02-23Bugfix: don't read from a write-only VBO when updating grid buffers.Nicholas Bishop
2012-02-23bmesh py api functions:Campbell Barton
bmesh.utils.vert_collapse_edge, vert_collapse_faces, vert_dissolve, face_split
2012-02-23bmesh api cleanup, remove unused header.Campbell Barton
2012-02-23Fix #30315: Temporary proxy files are not erased and old proxys are not ↵Sergey Sharybin
updated if the proxy is built more then once (windows) Two issues are fixed here: - On windows rename() doesn't actually renames file if destination file is already exist. Solved by ulinking previously built proxy/timecode. - IMB_TC_MAX_SLOT was set to incorrect value leading to record run timecode calculating several times.
2012-02-23BGE is compilable by MSVC againSergey Sharybin
Compilation error was mostly caused by trying to use namespace std before it was actually defined (e.g. before any include of stl header). It's not actually good idea to use namespaces in header files -- it's really easy to run into namespace conflicts and so. Resolved by not using "using namespace" in header files and using full quality accessing to stl collections (e.g. std::vector).
2012-02-23bmesh minor api refactorCampbell Barton
* BM_vert_in_face now loops over a vert's faces rather then every vert in the face. * rename bmesh_radial_find_first_facevert --> bmesh_radial_find_first_faceloop * rename bmesh_radial_find_next_facevert --> bmesh_radial_find_next_faceloop * rename BM_vert_collapse_edges --> BM_vert_collapse_edge (only collapses one)
2012-02-23* Fixed some typos in the code, patch [#30247] by Vladimir Rutsky (rutsky). ↵Thomas Dinges
Thanks!
2012-02-23Refresh all cached ibmufs used by sequencer after all proxies are built.Sergey Sharybin
Hopefully this will fix #30196: Proxies Not Visible in VSE Preview Window until Blender Reboot
2012-02-23Code cleanup: replace some common CCG operations with functions.Nicholas Bishop
The new functions are ccg_gridsize, ccg_edgesize, ccg_spacing, and ccg_edgebase. These target most of the left-shift operations in the code.
2012-02-23bmesh py api, new submodulesCampbell Barton
* bmesh.types, just allows access to BMVert, BMEdge etc. * bmesh.utils, so far only added edge_split() function, this module will give access to mesh editing functions.
2012-02-23swap arg order for BM_edge_split(), makes sense to have edge as firstCampbell Barton
arg.
2012-02-23- swap arg order for BM_face_copy() boolean options.Campbell Barton
- use edge example for BM_face_split().
2012-02-23bmesh py api, more wrapped funcs:Campbell Barton
* BMFace.copy(verts=True, faces=Trur) * BMEdge.other_vert(vert)
2012-02-23bmesh py api: functions for getting the area/angle/center of BMesh elements.Campbell Barton
2012-02-23code cleanup: dont set the namespace in STR_String.h - 'using namespace ↵Campbell Barton
std', since this is included in many places.
2012-02-23code style cleanup, no functional changes.Campbell Barton
2012-02-23style cleanup for blenkernel, no functional changes.Campbell Barton
2012-02-23Move PBVH bitmap to separate header in blenlib.Nicholas Bishop
The implementation was also changed in a couple ways: use unsigned integers as its base type rather than unsigned chars, and uses macros rather than functions. (These could be changed to inline functions.) Currently it is still only used during PBVH building, but now it's accessible elsewhere.
2012-02-23Code cleanup: de-duplicate code in GPU_build_grid_buffers() with a macro.Nicholas Bishop
2012-02-23Code cleanup: split up some long functions in sculpt_undo.c.Nicholas Bishop
Should be no functional changes.
2012-02-23Code cleanup: don't use GHash for GPU_build_mesh_buffers().Nicholas Bishop
At the point where GPU_build_mesh_buffers is called, the face_vert_indices map has already been built; it contains the same data in an easier-to-access format.
2012-02-23Code cleanup: remove unused 'skip' field from PBVH iterator.Nicholas Bishop
2012-02-23Code cleanup: move the PBVH iterator's initialization into a function.Nicholas Bishop
Should be no functional changes, just shortens the amount of code living in the macro.
2012-02-23fix scons compilation, hopefully for all platforms that have a problem. Antony Riakiotakis
2012-02-23Armature pose evaluation: more factorization of code.Bastien Montagne
Now constraints' space conversion code also uses generic armature_mat_(pose_to_bone/bone_to_pose). Previous own function (constraint_pchan_diff_mat) was somewhat inconsistent too with Hinge/NoScale/LocalLocation options... As with previous similar changes, this might break some old rigs, in very specific cases (when constraint-evaluating an hinge/noscale/local_location bone in local space). In the same part of code, removed unnecessary matrices copying, mult_m4_m4m4 can take the same matrix as input and output, nowadays... Also found a bug-generator weakness in those armature_mat_ functions (if both input and output mat where the same, result was wrong, now systematically copying input mat, as done in LIB's matrix funcs). Finally, factorized offset bone matrix generation into its own small function too, as it is used in two different places in armature.c (pchan_to_pose_mat itself, and restpose's where_is_armature_bone). Note: I think all parts of blender's code related to that topic have now been tackled, but yet have to check BGE, it’s probably using that stuff too, one way or the other...
2012-02-22Fix blenderplayer linking with recent additions to bmesh python. We should ↵Antony Riakiotakis
really start building with player on so that mistakes like this can be detected early.
2012-02-22code cleanyp - no functional changes.Campbell Barton
2012-02-22More style edits (adding a space between statements and parenthesis, if ↵Bastien Montagne
(foo) blah;), to follow http://wiki.blender.org/index.php/User:Nazg-gul/CodeStyle proposition.
2012-02-22bmesh python api change in internal behavior.Campbell Barton
* Only have 1 python object per bmesh, vertex, edge, loop, face. * Store pointers back to the python data in a custom data layer so as not to use more memory for normal editing operations (when pythons not running). * Currently this data is created and freed along with the BMesh PyObject. * Incidentally - this fixes comparisons for bmesh elements which wasnt working before.
2012-02-22Style code cleanup and consistancy (mainly spaces around assignements, C++ ↵Bastien Montagne
comments to C, and misc spaces/tabs cleanup). No functional change.
2012-02-22fix 2 small bugsCampbell Barton
* Ctrl+Click extrude wasnt normalizing the quaternion (was printing warnings) * bmesh bevel was supposed to add a float layer and remove, but removing passed the mask define of the customdata layer.
2012-02-22Multi File Output Node:Thomas Dinges
* Some small UI tweaks, grey out image settings rather than hide and made it a bit more compact.
2012-02-22Fix freeing of NULL pointer in array modifier.Sergey Sharybin
2012-02-22Fixed compilation error after recent node commit.Sergey Sharybin
2012-02-22add slice access to bmesh sequences.Campbell Barton
eg: verts = bm.verts[1:-7]
2012-02-22BMesh-py attributes (readonly):Campbell Barton
* is_valid (all types) * is_wire (verts/edges) * is_boundry (edge only) * is_manifold (verts/edges) also corrected own error, missed updating BMesh operator formatting char (broke erase only-faces)
2012-02-22Adds a new node type for saving multiple image files from a single node.Lukas Toenne
Unlike the existing file output node this node has an arbitrary number of possible input slots. It has a base path string that can be set to a general base folder. Every input socket then uses its name as an extension of the base path for file organization. This can include further subfolders on top of the base path. Example: Base path: '/home/user/myproject' Input 1: 'Compo' Input 2: 'Diffuse/' Input 3: 'details/Normals' would create output files in /home/user/myproject: Compo0001.png, Compo0002.png, ... in /home/user/myproject/Diffuse: 0001.png, 0002.png, ... (no filename base given) in /home/user/myproject/details: Normals0001.png, Normals0002.png, ... Most settings for the node can be found in the sidebar (NKEY). New input sockets can be added with the "Add Input" button. There is a list of input sockets and below that the details for each socket can be changed, including the sub-path and filename. Sockets can be removed here as well. By default each socket uses the render settings file output format, but each can use its own format if necessary. To my knowledge this is the first node making use of such dynamic sockets in trunk. So this is also a design test, other nodes might use this in the future. Adding operator buttons on top of a node is a bit unwieldy atm, because all node operators generally work on selected and/or active node(s). The operator button would therefore either have to make sure the node is activated before the operator is called (block callback maybe?) OR it has to store the node name (risky, weak reference). For now it is only used in the sidebar, where only the active node's buttons are displayed. Also adds a new struct_type value to bNodeSocket, in order to distinguish different socket types with the same data type (file inputs are SOCK_RGBA color sockets). Would be nicer to use data type only for actual data evaluation, but used in too many places, this works ok for now.
2012-02-22Fix #30290: Shape Keys not working as expectedSergey Sharybin
New method of vertex shapekey propagation didn't restored coordinates in me->mvert array which lead to unwanted deformation of basis mesh and lead to issues like described in the report.
2012-02-22bmesh py api add connectivity attributes - to access adjacent data.Campbell Barton
2012-02-22bmesh py api - function to remove vert/edge/facesCampbell Barton
2012-02-22bmesh python api - add BMEdge.verts, also had to add VERTS_OF_EDGE iterator ↵Campbell Barton
in bmesh's api.
2012-02-22bmesh py api - generalize bmesg sequences to use the iterator type and ↵Campbell Barton
optionally another bmesh element. This allows BMFace.verts to be added without defining a new sequence type.
2012-02-22initial bmesh python api.Campbell Barton
corrently allows to create and loop over verts/edges/faces, access selection and selection modes. this is still WIP, access to face, edge verts is still missing, no access to UV's, no access to editing operations yet. When the api is ready it will be documented by sphinx like mathutils, blf, aud.
2012-02-22utility functions to convert between flags / sets, without depending on RNA API.Campbell Barton
2012-02-22correct exception - was using a TypeError when should be a ValueError.Campbell Barton
2012-02-22Fix #30231: Drag and Droping Parenting from Outliner giving unnecessary Loop ↵Sergey Sharybin
Error In fact, error was much deeper and DND parenting in outliner used to parent all selected objects to drop target, not just currently dragging object. This was caused by code sharing between Parent Set operator and this DND operator which was iterating all selected objects in scene and was setting parent to it. Solved issue by separating actual parenting code which makes specified object be parented to specified parent and moved iterating to Parent Set exec callback. Now both of discovered issues (unneeded loop error and parenting all selected objects) are solved, but more extensive testing of this changes are welcome.
2012-02-22Attempt to fix scons compilation of blenderplayer.Antony Riakiotakis
Added bmesh to player libraries and changed the priority of blenlib so as to avoid duplicate definitions (looks like there are actually functions defined twice that cause conflicts if one changes the order of linking...figures). Only tested this on mingw-windows, I hope it works elsewhere too.
2012-02-22Stitch tool fully functional again. Many thanks to Howard Trickey for ↵Antony Riakiotakis
proposing the loop winding criterion for normal disambiguation of edges. Unfortunately some extra memory has to be allocated for this to work correctly. If the tool had been initially written for bmesh I would have used the already present adjacency information to make it work, avoiding some extra allocations. Maybe a project for another day though, when I am more proficient with bmesh internals.
2012-02-21change UvElement to directly use BMLoop * instead of tfindex. This saves ↵Antony Riakiotakis
quite some lookups on uv sculpting and stitching. Based on BMESH todo by Campbell, thanks for the idea!
2012-02-21uv stitch static island highlight ported to bmesh system.Antony Riakiotakis
Unfortunately since we are missing a way to tesselate uvs, the result will look good only on concave faces since we are essentially using a triangle fan to draw. When a tesselation of uv polygons is possible the tool should also change to use that instead. This will also influence the preview drawing code, coming next.