[Bf-blender-cvs] [9b5a32c] master: Proxy: Construct pchan hash when syncing armature proxy

Sergey Sharybin noreply at git.blender.org
Mon Nov 7 11:44:13 CET 2016


Commit: 9b5a32cbfb8a8565202bdccd232c53f98b62eeec
Author: Sergey Sharybin
Date:   Fri Nov 4 17:46:41 2016 +0100
Branches: master
https://developer.blender.org/rB9b5a32cbfb8a8565202bdccd232c53f98b62eeec

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.

===================================================================

M	source/blender/blenkernel/intern/armature.c

===================================================================

diff --git a/source/blender/blenkernel/intern/armature.c b/source/blender/blenkernel/intern/armature.c
index aaec3a9..cc508aa 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);




More information about the Bf-blender-cvs mailing list