Blender Git Loki

Git Commits -> Revision 25b7599

March 14, 2017, 18:08 (GMT)
Initial Commit: Snap System: Store 2d arrays in cached to make the snap test.

This is a branch just fot test. Since storing 2d arrays gives more freedom for code changes and is more efficient.

There are some limitations to this code:
- Any change in view3d, or in the object_matrix, makes it necessary to update the cache (which is not done yet);
- Objects are stored in a ListBase at the time the context is created. This does not guarantee that objects added after its creation are included in the snap.
- Objects deleted after context creation can bring segfault problems.

I will test the performance benefits after.

Commit Details:

Full Hash: 25b75995f8b93eed64ecf47aeab3ff08071b0082
Parent Commit: 76ec329
Lines Changed: +1560, -1281

17 Modified Paths:

/source/blender/blenkernel/BKE_bvhutils.h (+10, -2) (Diff)
/source/blender/blenkernel/intern/bvhutils.c (+91, -60) (Diff)
/source/blender/blenlib/BLI_kdopbvh.h (+4, -4) (Diff)
/source/blender/blenlib/BLI_math_geom.h (+3, -2) (Diff)
/source/blender/blenlib/intern/BLI_kdopbvh.c (+17, -12) (Diff)
/source/blender/blenlib/intern/math_geom.c (+33, -18) (Diff)
/source/blender/editors/armature/editarmature_sketch.c (+4, -8) (Diff)
/source/blender/editors/curve/editcurve.c (+4, -4) (Diff)
/source/blender/editors/include/ED_transform.h (+0, -1) (Diff)
/source/blender/editors/include/ED_transform_snap_object_context.h (+2, -9) (Diff)
/source/blender/editors/mesh/editmesh_tools.c (+4, -4) (Diff)
/source/blender/editors/space_view3d/view3d_ruler.c (+4, -12) (Diff)
/source/blender/editors/space_view3d/view3d_walk.c (+3, -6) (Diff)
/source/blender/editors/transform/transform_snap.c (+4, -10) (Diff)
/source/blender/editors/transform/transform_snap_object.c (+1372, -1122) (Diff)
/source/blender/makesrna/intern/rna_scene_api.c (+3, -4) (Diff)
/source/blenderplayer/bad_level_call_stubs/stubs.c (+2, -3) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021