diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-05-03 18:32:16 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-05-03 18:32:16 +0300 |
commit | 3bf31c6d234537e2207fc71b1ef016f800803ca9 (patch) | |
tree | b38f18b1d1035b1867f6f30d9a6b259ece1443e5 /source/blender/blenkernel/intern/action.c | |
parent | 1f167037923fafb198cbe9cf44544e1bbb66b827 (diff) |
Move pose-bone colors into draw_data
Also only allocate necessary number of bone segments.
Diffstat (limited to 'source/blender/blenkernel/intern/action.c')
-rw-r--r-- | source/blender/blenkernel/intern/action.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/action.c b/source/blender/blenkernel/intern/action.c index 9889ebc56ef..30097a98b40 100644 --- a/source/blender/blenkernel/intern/action.c +++ b/source/blender/blenkernel/intern/action.c @@ -580,7 +580,7 @@ void BKE_pose_copy_data(bPose **dst, bPose *src, const bool copy_constraints) pchan->prop = IDP_CopyProperty(pchan->prop); } - pchan->draw_data = NULL; /* Drawing cache of bbone matrices, no need to copy. */ + pchan->draw_data = NULL; /* Drawing cache, no need to copy. */ } /* for now, duplicate Bone Groups too when doing this */ @@ -770,7 +770,7 @@ void BKE_pose_channel_free_ex(bPoseChannel *pchan, bool do_id_user) MEM_freeN(pchan->prop); } - /* Cached bbone matrices, for new draw manager rendering code. */ + /* Cached data, for new draw manager rendering code. */ MEM_SAFE_FREE(pchan->draw_data); } |