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
2014-06-23BMesh: we actually can set loop indices too while converting from Mesh to ↵Bastien Montagne
BMesh...
2014-04-22BMesh: minor optimizations for shapekey lookups on conversionCampbell Barton
2014-04-13Split Normals I (2/5): Add basic BMesh support of split normals.Bastien Montagne
* Merely a re-implementation of core split algorithm for BMesh, taking advantage of topological data available. * This code needs valid loop indices, so added BM_LOOP support to BM_mesh_elem_index_ensure() & co. Reviewers: campbellbarton Reviewed By: campbellbarton CC: brecht Differential Revision: https://developer.blender.org/D366
2014-04-01Fix T39550: polygons.active has bad defaultCampbell Barton
2013-08-21bmesh api cleanup, face creation args now accept an example face (as with ↵Campbell Barton
vertex and edge), also replace BM_face_create_quad_tri_v with BM_face_create_verts
2013-07-28move alloca define into its own header since its not related to BLI_arrayCampbell Barton
2013-07-24code cleanup: use iterator macros, and replace BM_LOOPS_OF_FACE with direct ↵Campbell Barton
loop access when converting a bmesh to a mesh.
2013-06-26fix [#35507] BMesh module: Crash on to_mesh() if faces.layers.tex is used ↵Campbell Barton
but no loops.layers.uv
2013-06-03fix [#35555] Collada: export destroys mesh in some casesCampbell Barton
add arguments to calculate normals when converting to bmesh: BM_mesh_bm_from_me, DM_to_bmesh This gives some speedup to undo (which didnt need to re-calculate vertex normals), and array modifier which doesnt need to calculate face normals at all
2013-05-09can't use alloca in inline functions (fills up stack - I thought compiler ↵Campbell Barton
would be smart here). also reserve the exact number of vert/face/edge/loops when creating a bmesh during undo.
2013-05-09bmesh: avoid using BLI_array macros for every face when converting to bmesh, ↵Campbell Barton
replace with alloca
2013-04-01Removed ME_CDFLAG_FREESTYLE_EDGE and ME_CDFLAG_FREESTYLE_FACE from ↵Tamito Kajiyama
Mesh::cd_flag. Suggested by Campbell Barton through a review comment of the Freestyle branch.
2013-03-19svn merge ^/trunk/blender -r55357:55372Campbell Barton
2013-03-18Merged changes in the trunk up to revision 55357.Tamito Kajiyama
Resolved conflicts: release/datafiles/startup.blend source/blender/editors/space_nla/nla_buttons.c Also updated source/blender/blenkernel/intern/linestyle.c as a follow-up of recent changes for the use of bool.
2013-03-17code cleanup: name mesh functions more consistently, also use bools for mesh ↵Campbell Barton
args.
2013-03-13New implementation of Freestyle edge/face marksTamito Kajiyama
The previous implementation of Freestyle edge/face marks was refactored based on suggestions from the latest code review by Campbell. The new implementation relies on mesh CustomData to store edge/face marks, instead of introducing extra flags in the core Mesh and BMesh data structures. The CustomData-based implementation will allow further additions of new edge/face attributes because of the independence from Mesh/BMesh. This revision is work in progress, mainly intended to address the review comments and ask for further code review in view of the trunk merger in the upcoming 2.67 release.
2013-03-09code cleanup: favor braces when blocks have mixed brace use.Campbell Barton
2013-02-03fix for error in own recent change, sculpt triangulate was done on a bmesh ↵Campbell Barton
with uninitialized faces normals, add warning that BM_mesh_bm_from_me() dosn't calculate face normals.
2013-01-19use openmp for building bmesh arrays, also replace calloc with malloc.Campbell Barton
2013-01-17optimize bmesh operations that use triangle BMFace's (dyn-topo and mesh ↵Campbell Barton
conversion).
2013-01-14use booleans for bmesh api.Campbell Barton
2013-01-14fix own bug, edge crease and bevel weights lost on undo.Campbell Barton
2013-01-10don't store bevel weights or edge crease customdata layers in editmode ↵Campbell Barton
unless they are needed. configurable in 'Geometry Data' panel, will be added when running crease edges transform for example.
2013-01-08fix [#33792] Accessing a bmesh object created by from_object crashes blenderCampbell Barton
Issue was customdata wasnt being initialized for layers in the destination BMesh but not in the source data.
2012-11-30fix own mistake in recent commit - entering editmode with a shape key crashed.Campbell Barton
2012-11-29remove unneeded mesh->bmesh conversion code that copied BMLoop data in a ↵Campbell Barton
separate loop (since there is no longer pre-allocated loop data on the new BMLoops).
2012-11-29fix [#33029] Applying modifier leaks memoryCampbell Barton
Thanks for Sergey for finding the bug & patching, This fix works a bit differently. Theres no need to allocate the customdata in the first place - since its written into. So add a flag for vert/edge/face/loop creation functions so they can skip customdata creation.
2012-10-31make use customdata typeoffset more, add an assert to ensure its to date.Campbell Barton
2012-10-01add compiler hints that failing to create a bmesh face is unlikely.Campbell Barton
2012-09-19code cleanup: make shape key api names consistent with our new convention.Campbell Barton
2012-08-23Fix #32387: some mesh modifications breaking other shape keys.Brecht Van Lommel
The vertex shapekey index is now no longer copied, and propagation of offsets in the basis to other shapekeys is disabled if new vertices were added. The reason being that the propagation will only be done for the old vertices leaving the new ones behind, and so doing e.g. subdivide + translate on the basis would create a mess on other shape keys.
2012-06-24style cleanypCampbell Barton
2012-05-22fix [#31489] EdgeSplit modifier prevents All Edge to be work correctly since ↵Campbell Barton
2.63 bmesh regression where the edge-draw flag was cleared when bmesh modifiers were used.
2012-04-28style cleanup: format 'for' loop macros the same as for loops, some renaming ↵Campbell Barton
to BLI_array macros.
2012-04-24fix own error with subdivision (broke icosphere), also noticed icosphere ↵Campbell Barton
vanished at subd-5 which didnt happen before bmesh.
2012-04-20fix for error using uninitialized variable with shape key conversion.Campbell Barton
2012-04-20code cleanup: prefer BM_face/edge/vert_select_set() over ↵Campbell Barton
BM_elem_select_set() when the type is known (saves switch statement check on the type). Add asserts so the correct types are ensured.
2012-04-19code cleanup: remove unused BMesh args.Campbell Barton
2012-04-19remove BM_ITER, BM_ITER_INDEX macros, use ELEM or MESH variants only (the ↵Campbell Barton
maceros had unused args in both cases).
2012-04-19style cleanup: BM_ITER / BM_ITER_INDEX / BMO_ITERCampbell Barton
2012-04-16Port multires_topology_changed to new bmesh apiSergey Sharybin
This call is still needed when loading editmesh because some operations are not creating CD layer for new loops (like crating new face) and to prevent loosing all sculpted data when running disps correct displacement maps should be allocated on loading edit mesh.
2012-04-12code cleanup: remove unused KeyBlock.adrcodeCampbell Barton
2012-04-12bmesh shape key conversion.Campbell Barton
- remove print for impossible error. - add NULL check incase bmesh and mesh get out of sync (would crash if Basis key-block couldn't be found).
2012-04-12bmesh exit editmode: when a mesh shape-key customdata layer exists but the ↵Campbell Barton
shape-key-block isnt found, creating a shape key was allocated and inline - it didnt set the name or uid, Now use add_keyblock() as every other function does.
2012-04-12doxygen docs explaining whats going on with shape-key conversion.Campbell Barton
2012-04-11fix [#30771] Shapekeys: Basis shapekey is not kept in sync with "RealMesh"Campbell Barton
behave the same as in 2.4x. - merge BMesh / Pre-BMesh code shape key conversion code, old code was called as a fallback but merge instead. - fix possible crash - new bmesh code was clamping the vertex index for the oldverts array by the new total number of verts.
2012-04-11bmesh shape key conversion on exiting editmode.Campbell Barton
there were 2 blocks of code (both calculating the offset array), now move the fallback method into the main key conversions block.
2012-04-11bmesh exit editmode shape key conversion - split out 'keyblock --> ↵Campbell Barton
customdata layer index' into its own function, makes code easier to follow.
2012-04-11bmesh shape key conversion when exiting editmode.Campbell Barton
- avoid running old conversion code if its not needed. - de-duplicate functionality which gets offsets from edits made in editmode.
2012-04-11code cleanup: mselect conversion when creating a bmesh from a bmesh was ↵Campbell Barton
overly verbose.