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
2020-06-05Cleanup: rename suffix 'conv' to 'convert'Campbell Barton
2020-05-25Fix crash when converting BMesh to Mesh with shape keysSybren A. Stüvel
The `BM_mesh_bm_to_me()` function copies shape keys from the BMesh to the Mesh. However, it tries to copy the same number of shape keys as are defined on the target mesh. Since the target mesh does not necessarily have the same number of shape keys as the BMesh, this would crash if the target Mesh has more. Found while performing some tests for {D7785}. Differential Revision: https://developer.blender.org/D7818 Reviewed by: brecht
2020-03-19Cleanup: `make format` after SortedIncludes changeDalai Felinto
2019-11-28BMesh: reduce memory usage existing edit-modeCampbell Barton
- Don't duplicate the original vertices. - Free old geometry before allocating the new geometry.
2019-11-28Fix separating mesh parts breaking vertex parents & hooksCampbell Barton
Follow up on T71865 which only reported the issue for shape keys.
2019-11-27Fix T71865: Separating mesh parts breaks shape keysCampbell Barton
This was an old bug which could be caused by saving after separating. Changes from 79b703bb635e made this fail reliably. Update shape key indices when they may be used again later.
2019-11-27Cleanup: bmesh conversion commentsCampbell Barton
2019-11-27Fix crash exiting edit-mode with an active basis shape keyCampbell Barton
Exposed by T71865, while the bug remains this resolves the crash.
2019-08-16Cleanup: spellingCampbell Barton
2019-07-07Cleanup: spellingCampbell Barton
2019-05-31Fix bmesh_to_mesh freeing possibly referenced verticesSergey Sharybin
Fixes Godot exporter issue reported in T65285.
2019-04-29Cleanup: comments (long lines) in bmeshCampbell Barton
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-03-27Cleanup: style, use braces for bmeshCampbell Barton
2019-03-08Fix T59304: boolean modifier does not preserve UV textures.Brecht Van Lommel
In the old derivedmesh function it was merging customdata layers, added that back for mesh conversion too.
2019-03-08Cleanup: use plural names for Main listsCampbell Barton
Convention was not to but after discussion on 918941483f7e we agree its best to change the convention. Names now mostly follow RNA. Some exceptions: - Use 'nodetrees' instead of 'nodegroups' since the struct is called NodeTree. - Use 'gpencils' instead of 'grease_pencil' since 'gpencil' is a common abbreviation in the C code. Other exceptions: - Leave 'wm' as it's a list of one. - Leave 'ipo' as is for versioning.
2019-03-07Refactor CDData masks, to have one mask per mesh elem type.Bastien Montagne
We already have different storages for cddata of verts, edges etc., 'simply' do the same for the mask flags we use all around Blender code to request some data, or limit some operation to some layers, etc. Reason we need this is that some cddata types (like Normals) are actually shared between verts/polys/loops, and we don’t want to generate clnors everytime we request vnors! As a side note, this also does final fix to T59338, which was the trigger for this patch (need to request computed loop normals for another mesh than evaluated one). Reviewers: brecht, campbellbarton, sergey Differential Revision: https://developer.blender.org/D4407
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
BF-admins agree to remove header information that isn't useful, to reduce noise. - BEGIN/END license blocks Developers should add non license comments as separate comment blocks. No need for separator text. - Contributors This is often invalid, outdated or misleading especially when splitting files. It's more useful to git-blame to find out who has developed the code. See P901 for script to perform these edits.
2019-01-26Cleanup: remove redundant BKE/BLI/BIF headersCampbell Barton
2018-12-12Merge branch 'master' into blender2.8Campbell Barton
2018-12-12Cleanup: use colon separator after parameterCampbell Barton
Helps separate variable names from descriptive text. Was already used in some parts of the code, double space and dashes were used elsewhere.
2018-11-20Cleanup: use const mesh arg to BM_mesh_bm_from_meCampbell Barton
Needed for D3966
2018-11-10BMesh: backport minor changes from 2.8Campbell Barton
2018-10-24Fix T57351: Deform modifiers skipped in editmodeCampbell Barton
2018-10-23Cleanup: rename 'dm' -> 'me' for 'Mesh' typesCampbell Barton
2018-10-23Fix bad origindex layers for editmode modifiersCampbell Barton
Reverts workaround from last commit.
2018-10-10BMesh: simple bmesh -> mesh for evaluationCampbell Barton
Copied from CDDM_from_bmesh, the modifier stack doesn't need to handle shape keys, vertex parents or selection history (needed for mode switching).
2018-06-29Cleanup: remove another bunch of DM usages, includes etc.Bastien Montagne
2018-06-13Merge branch 'master' into blender2.8Bastien Montagne
Conflicts: source/blender/blenloader/intern/readfile.c source/blender/editors/mesh/editmesh_utils.c source/blenderplayer/bad_level_call_stubs/stubs.c
2018-06-13Cleanup: get rid of last G.main in BMesh code.Bastien Montagne
2018-06-05Moved function declarations from BKE_mesh.h → BKE_mesh_runtime.hSybren A. Stüvel
2018-05-11Bmesh: Clear possible geometry saved at runtime when converting bmesh to mesh.Germano
2018-02-19Merge branch 'master' into blender2.8Campbell Barton
2018-02-19Cleanup: remove BMeshToMeshParams.calc_tessfaceCampbell Barton
This wasn't used, tessface is being phased out. Caller can run explicitly if needed.
2018-02-19Fix T54098: Crash existing /w dyntopo sculptCampbell Barton
Optionally don't remap indices for objects. Checking all objects parent's would reference a freed pointer while freeing all objects. In the case of dynamic topology there is no use in keeping track of hook/vertex-parent indices. Also disable this when creating meshes for undo storage since adding an undo step shouldn't be modifying other objects.
2017-08-27Merge branch 'master' into blender2.8Campbell Barton
2017-08-26Missed last commitCampbell Barton
2017-08-26Fix T52515: Crash on BMesh.to_mesh()Campbell Barton
2017-08-26Merge branch 'master' into blender2.8Campbell Barton
2017-08-26Fix minor Mesh -> BMesh conversion issuesCampbell Barton
- Vertex only meshes never restored their selection history. - Select history was cleared on the source instead of the target. Simple Optimizations: - Avoid O(n^2) linked list looping that checked the entire list before adding elements (NULL values in the source array to prevent dupes). - Re-use vert & edge lookup tables instead of allocating new ones.
2017-05-25TexFace removal part 3Campbell Barton
- MTexPoly structure & layer type. - The 'Mesh.uv_textures' layers. - DerivedMesh TexFace drawing. - Scripts & UI.
2017-02-02Fix T50524: Basis shapekey editing while rendering bug.Bastien Montagne
Root of the issue was BM_mesh_bm_to_me() breaking application of basis offset to 'child' shapekeys, when called more than once from same BMesh.
2016-05-26BMesh: don't alloc zero sized select elem arrayCampbell Barton
2016-04-29Fix T48290: Hook fails after deleting geometryCampbell Barton
Now CD_SHAPEKEY_INDEX customdata is stored in edit-mode when hooks and vertex parents are used. This also fixes a bug where undo would loose key-index data. Move to structs for BM_mesh_bm_to/from_me to avoid passing many argument, which mostly aren't used.
2016-04-29BMesh: when multiple vertices have the same key-index, use the firstCampbell Barton
Simple error case where many vertices share an original index, now use the first match instead of the last.
2016-04-29Minor optimization to bmesh shape key conversionCampbell Barton
Avoid linked linked loop and custom-data lookups per vertex, use a table of shape-keys with array offsets instead.
2015-11-23Cleanup: shadowing (bmesh)Campbell Barton
2015-04-25Cleanup: use 8 space indent for multi-line argsCampbell Barton