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-03-09Cleanup: Replace ABS/SQUARE/CUBE with function callsSergey Sharybin
While it might be handy to have type-less functionality which is similar to how C++ math is implemented it can not be easily achieved with just preprocessor in a way which does not have side-effects on wrong usage. There macros where often used on a non-trivial expression, and there was at least one usage where it was causing an actual side effect/bug on Windows (see change around square_f(sh[index++]) in studiolight.c). For such cases it is handy to have a function which is guaranteed to have zero side-effects. The motivation behind actually removing the macros is that there is already a way to do similar calculation. Also, not having such macros is a way to guarantee that its usage is not changed in a way which have side-effects and that it's not used as an inspiration for cases where it should not be used. Differential Revision: https://developer.blender.org/D7051
2019-09-20Fix T70109: Crash with the Data Transfer Modifier (with any 'Edge Data' option)mano-wii
The BVHTree was erroneously marked as not cached.
2019-08-26Cleanup: use BLI_assertCampbell Barton
2019-08-26Fix assert restricting allowed operationmano-wii
2019-08-24BKE_bvhutils: implement hiden checkmano-wii
Accidentally unused in rB7c3bbe93aaa2
2019-08-24Fix BKE_bvhtree_from_editmesh_get not setting cached valueCampbell Barton
The stored value was always false because of shadowing. Also disable unused code.
2019-08-24BKE bvhutils: create and use new `BKE_bvhtree_from_editmesh_get`mano-wii
With this function it is easier to create and have control over editmeshes `BHVtree`s.
2019-08-22Cleanup/Refactor: Simplify/deduplicate bvhutils codemano-wii
This is a step that allow using `bvh_cache` for `EditMeshe`s.
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.