diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2016-05-05 21:49:21 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-05-05 22:01:51 +0300 |
commit | 0b5a0d84126e629394b198508789378eb5663561 (patch) | |
tree | 0b0614ef8cdd83d7f1578c82f5f22ffb44461f57 /source/blenderplayer/bad_level_call_stubs | |
parent | 88b72925d0ef59dc0d67df05f4ad74742175653c (diff) |
Transform/Snap: EditMesh/BKE_bvhutils API improvements
Separate the creation of trees from EditMesh from the creation of trees from DerivedMesh.
This was meant to simplify the API, but didn't work out so well.
`bvhtree_from_mesh_*` actually is working as `bvhtree_from_derivedmesh_*`.
This is inconsistent with the trees created from EditMesh. Since for create them does not use the DerivedMesh.
In such cases the dm is being used only to cache the tree in the struct DerivedMesh. What is immediately released once
bvhtree is being used in functions that change(tag) the DM cleaning the cache.
- Use a filter function so users of SnapObjectContext can define how edit-mesh elements are handled.
- Remove em_evil.
- bvhtree of EditMesh is now really cached in the snap functions.
- Code becomes organized and easier to maintain.
This is an important patch for future improvements in snapping functions.
Diffstat (limited to 'source/blenderplayer/bad_level_call_stubs')
-rw-r--r-- | source/blenderplayer/bad_level_call_stubs/stubs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blenderplayer/bad_level_call_stubs/stubs.c b/source/blenderplayer/bad_level_call_stubs/stubs.c index 78a6ad27fad..3ce7788fdf8 100644 --- a/source/blenderplayer/bad_level_call_stubs/stubs.c +++ b/source/blenderplayer/bad_level_call_stubs/stubs.c @@ -168,6 +168,7 @@ struct wmWindowManager; #include "../blender/editors/include/ED_space_api.h" #include "../blender/editors/include/ED_text.h" #include "../blender/editors/include/ED_transform.h" +#include "../blender/editors/include/ED_transform_snap_object_context.h" #include "../blender/editors/include/ED_uvedit.h" #include "../blender/editors/include/ED_view3d.h" #include "../blender/editors/include/UI_interface.h" |