Blender Git Commit Log
Git Commits -> Revision e3a604b
Revision e3a604b by Sergey Sharybin (master) July 10, 2013, 14:26 (GMT) |
Tag object-data level boundbox as invalid rather than freeing it Object update used to free object-data level bounding box to trigger it's re-calculation in the future. Such a freeing performed from object update isn't thread-safe because mesh could be shared between multiple objects. Rather than freeing bounding box, tag it's as invalid, this is safe from threading point of view and also prevents unnecessary memory re-allocation. Object-level bounding box is still reallocating, but think we could change this easily in the future as well. |
Commit Details:
Full Hash: e3a604b233613a0dffcb10c6f2ba39e9d97301d4
SVN Revision: 58155
Parent Commit: 9a167e3
Lines Changed: +17, -12
6 Modified Paths:
/source/blender/blenkernel/intern/mesh.c (+5, -2) (Diff)
/source/blender/blenkernel/intern/object.c (+1, -4) (Diff)
/source/blender/editors/space_view3d/view3d_draw.c (+2, -2) (Diff)
/source/blender/editors/space_view3d/view3d_view.c (+1, -1) (Diff)
/source/blender/makesdna/DNA_object_types.h (+4, -1) (Diff)
/source/blender/makesrna/intern/rna_mesh.c (+4, -2) (Diff)
/source/blender/blenkernel/intern/object.c (+1, -4) (Diff)
/source/blender/editors/space_view3d/view3d_draw.c (+2, -2) (Diff)
/source/blender/editors/space_view3d/view3d_view.c (+1, -1) (Diff)
/source/blender/makesdna/DNA_object_types.h (+4, -1) (Diff)
/source/blender/makesrna/intern/rna_mesh.c (+4, -2) (Diff)