Blender Git Loki

Git Commits -> Revision f79c748

Revision f79c748 by Bastien Montagne (master)
September 4, 2015, 10:26 (GMT)
Armature: Cheap edit-to-object mode speedup.

`fix_bonelist_roll()` is already recursive, and was calling recursive `BKE_armature_where_is_bone()` twice!

Changed `BKE_armature_where_is_bone()` to controll whether we recurse over children or not.

With full Victor's rig, we gain 16% in `ED_armature_from_edit()` (from 31ms to 26ms).
With a dummy test-case 100 bones chain, we gain 80% in `ED_armature_from_edit()` (from 1.25ms to 0.25ms).

Not crucial, but still worth it. ;)

Commit Details:

Full Hash: f79c748246b075fddf719d2a7a7cbd764f4c5a60
Parent Commit: 52fda9b
Lines Changed: +13, -11

3 Modified Paths:

/source/blender/blenkernel/BKE_armature.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/armature.c (+8, -7) (Diff)
/source/blender/editors/armature/armature_utils.c (+4, -3) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021