From 9b5a32cbfb8a8565202bdccd232c53f98b62eeec Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Fri, 4 Nov 2016 17:46:41 +0100 Subject: [PATCH] Proxy: Construct pchan hash when syncing armature proxy This makes bone lookup much faster (by avoiding liner string lookup) and speeds up depsgraph construction time on file open. --- source/blender/blenkernel/intern/armature.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/blender/blenkernel/intern/armature.c b/source/blender/blenkernel/intern/armature.c index aaec3a942d4..cc508aa0511 100644 --- a/source/blender/blenkernel/intern/armature.c +++ b/source/blender/blenkernel/intern/armature.c @@ -1781,6 +1781,7 @@ static void pose_proxy_synchronize(Object *ob, Object *from, int layer_protected BLI_duplicatelist(&pose->agroups, &frompose->agroups); pose->active_group = frompose->active_group; + BKE_pose_channels_hash_make(frompose); for (pchan = pose->chanbase.first; pchan; pchan = pchan->next) { pchanp = BKE_pose_channel_find_name(frompose, pchan->name);