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
2019-04-27Cleanup: comments (long lines) in blenkernelCampbell Barton
2019-04-21Cleanup: comments (mainly long lines)Campbell Barton
Comments after code can cause awkward line breaks.
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-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-28Cleanup/refactor clnor code: add high-level helpers to set custom normals.Bastien Montagne
Now it will be simpler for code jsut wanting to preserve custom normals around to set them, without having to add same boiler plate code all the time around actual code.
2019-02-23Cleanup: move variable declarations to headersCampbell Barton
Quiet undeclared variable warning.
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-28Cleanup: sort forward declarations of enum & structCampbell Barton
Done using: source/tools/utils_maintenance/c_sort_blocks.py
2018-12-17RNA: Add Mesh.count_selected_items()Campbell Barton
Needed for context menu checks.
2018-12-13Silence warning (const)Dalai Felinto
2018-12-03Fix T57858: Add validation callback to CustomData layers.Bastien Montagne
Our mesh validation was only checking cd layout so far, not their actual data. While this might only be needed for a few types, this is a required addition for things like imported UVs, else we have no way to avoid nasty things like NANs & co. Note that more layer types may need that callback, time will say. For now added it to some obvious missing cases...
2018-11-27Revert "Inline function BKE_mesh_boundbox_calc inside BKE_mesh_texspace_calc ↵Campbell Barton
to avoid confusion." This reverts commit e6322abad23a8ae71b72e54befffc17ae35e30d9.
2018-11-26Inline function BKE_mesh_boundbox_calc inside BKE_mesh_texspace_calc to ↵mano-wii
avoid confusion.
2018-11-21transform_snap_object: Use the texture space bound box to test the need to ↵mano-wii
snap to meshes in edit mode. Before a value for bound box was stored in a local cache.
2018-11-20Cleanup: use const mesh arg to BM_mesh_bm_from_meCampbell Barton
Needed for D3966
2018-11-07Merge branch 'master' into blender2.8Campbell Barton
2018-11-06BKE_mesh: add a utility to get edge indices from looptri.Alexander Gavrilov
Not all three sides of a tesselated mesh triangle are guaranteed to be original mesh edges, so a somewhat complicated check is required to detect which ones are real. It seems that until now there was no utility function for that, only some example code.
2018-10-24Fix T57366: Mesh.from_pydata invalid loose-edge stateCampbell Barton
2018-10-15Cleanup: remove unused functionsCampbell Barton
2018-10-15Cleanup: remove DerivedMesh bvhtree_from_mesh_getCampbell Barton
2018-10-11Cleanup: make BKE_mesh_ensure_normals_for_display publicCampbell Barton
2018-10-11RNA: remove redundant new_from_object/to_mesh argCampbell Barton
If the caller wants loop-tris, there is a function to calculate them.
2018-10-10Python API: add loop triangles access, remove tessfaces.Brecht Van Lommel
Loop triangles are tessellated triangles create from polygons, for renderers or exporters that need to match Blender's polygon tesselation exactly. These are a read-only runtime cache. Tessfaces are a legacy data structure from before Blender supported n-gons, and were already mostly removed from the C code. Details on porting code to loop triangles is in the release notes. Differential Revision: https://developer.blender.org/D3539
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-10-09Cleanup: namingCampbell Barton
Use BKE_mesh_* prefix for mesh module.
2018-10-09Edit Mesh: remove derived-mesh from crazy-space calculationCampbell Barton
2018-10-04Fix UV select tools not refreshingCampbell Barton
Add BKE_mesh_batch_cache_dirty_tag option for resetting UV's.
2018-09-25Modifiers: use Mesh instead of DerivedMesh for explode.Sebastian Parborg
Differential Revision: https://developer.blender.org/D3718
2018-09-21Cleanup: convert smoke modifier from DerivedMesh to Mesh.Brecht Van Lommel
2018-08-23Rename: *_batch_cache_dirty > *_batch_cache_dirty_tagDalai Felinto
2018-08-16Cleanup: Use dedicated function to copy mesh during evaluation processSergey Sharybin
It is rather fully annoying to have same sets of obscure flags all over.
2018-07-21Merge branch 'blender2.8' into soc-2018-bevelRohan Rathi
2018-07-12Merge branch 'master' into blender2.8Campbell Barton
2018-07-12Cleanup: remove legacy mesh save supportCampbell Barton
This was used for saving files for Blender 2.6x.
2018-07-05Ported CDDM_apply_vert_normals from DM to MeshSybren A. Stüvel
2018-07-02Merge branch 'blender2.8' into soc-2018-bevelRohan Rathi
2018-07-01Merge branch 'master' into blender2.8Campbell Barton
2018-07-01RNA: use bool for boolean RNA typesCampbell Barton
We were using int's for bool arguments in BKE, just to avoid having wrapper functions.
2018-06-20Merge branch 'blender2.8' into soc-2018-bevelRohan Rathi
2018-06-20Cleanup: remove some useless Derivedmesh struct declarations.Bastien Montagne
2018-06-11Merge branch 'blender2.8' into soc-2018-bevelRohan Rathi
2018-06-11Merge branch 'master' into blender2.8Bastien Montagne
Conflicts: source/blender/blenkernel/BKE_mesh.h source/blender/blenkernel/intern/mesh_convert.c source/blender/editors/interface/interface_eyedropper_color.c source/blender/editors/object/object_add.c source/blender/editors/space_image/image_ops.c source/blender/makesrna/intern/rna_image.c source/blender/windowmanager/intern/wm_draw.c
2018-06-11Cleanup: remove moar ugly G.main usages...Bastien Montagne
BKE_image was an ugly nest, could fix all but the ones from compositor, so moved ugly G.main there, at least we know where the Evil is that way ;)
2018-06-06Renamed BKE_nomain_mesh_xxx → BKE_mesh_nomain_xxxSybren A. Stüvel
This maintains the `BKE_mesh_` prefix for the mesh-related BKE functions.
2018-06-06Modifiers: ported curve_calc_modifiers_post() internals from DerivedMesh → ↵Sybren A. Stüvel
Mesh The function still returns a DerivedMesh, but internally it uses Mesh now.
2018-06-05Moved function declarations from BKE_mesh.h → BKE_mesh_runtime.hSybren A. Stüvel
2018-06-01Modifiers: ported applying modifier from DerivedMesh → MeshSybren A. Stüvel
2018-06-01Mesh: Replace DM for mesh -> curve conversionCampbell Barton