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-08-06Fix T68320: measure tool memoryleakmano-wii
It was a stupid mistake with the wrong pointer being referenced. It was a serious problem because the memory leak was considerable.
2019-05-29Fix T65027: Snap 3D cursor on hidden faces doesn't work in Edit Mode.mano-wii
I'm not very fond of adding new types of bvhtrees. But this is probably the most efficient solution.
2019-04-27Cleanup: comments (long lines) in blenkernelCampbell Barton
2019-04-22Cleanup: style, use braces for blenkernelCampbell 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-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: blank lines over doxy headersCampbell Barton
2019-01-22Fix potential invalid memory access in surface force field BVH tree.Andrew Williams
Free the BVH tree immediately along with the mesh, otherwise we might access invalid mesh data. Differential Revision: https://developer.blender.org/D4201
2018-12-19BLI_bitmap: add functions operating on the whole bitmask.Alexander Gavrilov
There is no point having operations that iterate over the whole bit array as macros, so convert BLI_BITMAP_SET_ALL to a function. Also, add more utilities for copying and manipulating masks. Reviewers: brecht, campbellbarton Differential Revision: https://developer.blender.org/D4101
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-10-15Cleanup: remove unused functionsCampbell Barton
2018-10-15Cleanup: remove DerivedMesh bvhtree_from_mesh_getCampbell Barton
2018-09-02Cleanup: comment blocksCampbell Barton
2018-09-02Cleanup: comment blocksCampbell Barton
2018-07-23transform_snap_object: Better bvhtree creation management for editing ↵Germano
multiple objects. - Use the object referenced in `BMEditMesh` as the `ghash` key to save the bvhtrees in cache; - Create a boundbox around edit_mesh to test the snap before creating bvhtree; - Save the `edit_mesh`s bvhtree in the mesh bvh_cache; This is a part of the D3504.
2018-06-27Cleanup: styleCampbell Barton
2018-06-17Merge branch 'master' into blender2.8Campbell Barton
2018-06-17Cleanup: trailing space for blenkernelCampbell Barton
2018-06-05Moved function declarations from BKE_mesh.h → BKE_mesh_runtime.hSybren A. Stüvel
2018-05-16Cleanup: BKE_bvhuitls: Use a struct rather than re-create each member of it.Germano
2018-05-13BKE_bvhutils: allow caching NULL bvh_trees.Germano
This prevents zero-leafs bvhtrees from being recalculated multiple times.
2018-05-12Remove unused function: `BKE_bvhtree_from_mesh_looptri`.Germano
2018-05-11Cleanup: whitespace, duplicate includesCampbell Barton
2018-05-10Fix error buildingCampbell Barton
2018-05-10Cleanup: Remove redundant parameter.Germano
2018-05-10Cleanup: warningsCampbell Barton
2018-05-10BKE: bvhutils: Added support for bvhtrees from loose verts and bvhtree from ↵Germano
loose edges
2018-05-09Fix (unreported) bug in BVHTree 'free tessfaces' flag setting.Bastien Montagne
Same issue as in DM-based on, so follow up of rBf3efa9e15f58...
2018-05-09Merge branch 'master' into blender2.8Bastien Montagne
2018-05-09Fix (unreported) bug in BVHTree 'free tessfaces' flag setting.Bastien Montagne
Could lead to atempt to free NULL pointer, and/or memory leak.
2018-05-09BKE: bvhutils: Always return NULL when the BVHtree has no leafs.Germano
BLI_bvhkdop functions were not made to work with zero-leaf trees. Perhaps a better solution would be to modify BLI_bvhkdop to work with zero leaf trees. But this solution of returning NULL was already used for bvhtrees of looptris.
2018-05-09BKE: bvhutils: Port bvhtree_from_mesh_get to take a Mesh param instead of a ↵Germano
DerivedMesh. Differential Revision: https://developer.blender.org/D3227
2018-05-08Cleanup: mesh_runtime namingCampbell Barton
- BKE_mesh_get_looptri_num -> BKE_mesh_runtime_looptri_len - BKE_mesh_runtime_recalc_looptri -> BKE_mesh_runtime_looptri_recalc - BKE_mesh_get_looptri_array -> BKE_mesh_runtime_looptri_ensure
2018-05-08looptri + bvhtree support for MeshSybren A. Stüvel
2018-05-04BKE: bvhuils: remove member `sphere_radius`.Germano
This member currently doubles the value of `ray->radius` or is not even used.
2018-05-04Fix erroe in previous commit.Germano
2018-05-04BKE: bvhutils: Unifies static functions oh bvhtrees creation.Germano
2018-05-04BKE: BVHtree: Replace all external references of `bvhtree_from_mesh_looptri` ↵Germano
with `bvhtree_from_mesh_get`.
2018-05-04BKE: BVHtree: make `bvhtree_from_mesh_edges` a static function.Germano
This will help us have more control over bvhtrees that are cached.
2018-05-03BKE bvhtree: Add `tree_type` parameter to `bvhtree_from_mesh_get`.Germano
This will allow greater control of the bvhtrees that are obtained, and helps identify problems. It is also an additional step to unify the functions.
2018-05-01Refactoring: bvhutils: Use a function that gets the bvhtree through an ↵Germano
identifier type. Reviewed By: @campbellbarton Differential Revision: https://developer.blender.org/D3192
2018-02-15Cleanup: use '_len' instead of '_size' w/ BLI APICampbell Barton
- When returning the number of items in a collection use BLI_*_len() - Keep _size() for size in bytes. - Keep _count() for data structures that don't store length (hint this isn't a simple getter). See P611 to apply instead of manually resolving conflicts.
2017-08-11Fix transform snap code using 'allocated' flags to get verts/edges/etc. ↵Bastien Montagne
arrays again from DM. This was... horribly wrong, CDDM will often *not* need to allocate anything to return arrays of mesh items! Just check whether array pointer is NULL. Also, remove `DM_get_looptri_array`, that one is useless currently, `dm->getLoopTriArray` will always return cached array (computing it if needed).
2017-06-19Cleanup: doxygen commentsCampbell Barton
Also remove duplicate & mismatching comments from grease-pencil header. Keep comments close to implementation to avoid getting out of sync.
2017-02-17Remove unused functions related to distance between BoundBox and rayGermano Cavalcante
2017-02-17Forgotten in last commit: Check the allocationGermano Cavalcante
2017-02-17Do not release the arrays used in the parameters of the expanded functions ↵Germano Cavalcante
of bvhutils The release of these arrays should be the programmer's discretion since these arrays can continue to be used. Only the expanded functions `bvhtree_from_mesh_edges_ex` and `bvhtree_from_mesh_looptri_ex` are currently being used in blender (in mesh_remap.c), and from what I could to analyze, these changes can prevent a crash.