diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-03-26 13:33:53 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-03-26 13:33:53 +0300 |
commit | 40e58c85092945ca71e974ce4062d90e44f7fb66 (patch) | |
tree | b102a091696741d2ab4572f1c259ae8512263d5d /source/blender/blenloader | |
parent | 6af1f968761b5d94184c68b1ea9dbf88792a1c13 (diff) |
Optimization for pose channel name lookups using a hash, makes
playback in one particular scene with 3 characters go from 10 to 13 fps.
(commit 27728 by Brecht from render25 branch)
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 5bcf7806a49..768fe1f2c33 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -3652,6 +3652,8 @@ static void direct_link_pose(FileData *fd, bPose *pose) link_list(fd, &pose->chanbase); link_list(fd, &pose->agroups); + pose->chanhash= NULL; + for (pchan = pose->chanbase.first; pchan; pchan=pchan->next) { pchan->bone= NULL; pchan->parent= newdataadr(fd, pchan->parent); |