diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-06-07 18:35:23 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-06-08 11:46:45 +0300 |
commit | 23c93873f4073e440d3817465252d8f86134654c (patch) | |
tree | a2d8d03ca46d21ef6bca1aff38a6b7f2139343a9 /source/blender/editors/armature/armature_select.c | |
parent | d675415eef9f565b1828f48dfe874321af1c4af8 (diff) |
Remove selection color from the base
Use indirect access to it via object.
It was already flushing from base to object, now we can avoid such flushing.
Still weird to have selection color filled in by dependency graph, but now
there is no synchronization going on at least.
Diffstat (limited to 'source/blender/editors/armature/armature_select.c')
-rw-r--r-- | source/blender/editors/armature/armature_select.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/armature/armature_select.c b/source/blender/editors/armature/armature_select.c index 8db1cb7d6c0..17dc8eac38c 100644 --- a/source/blender/editors/armature/armature_select.c +++ b/source/blender/editors/armature/armature_select.c @@ -98,7 +98,7 @@ void *get_bone_from_selectbuffer( /* Determine what the current bone is */ if (obedit == NULL || base->object != obedit) { /* no singular posemode, so check for correct object */ - if (base->selcol == (hitresult & 0xFFFF)) { + if (base->object->select_color == (hitresult & 0xFFFF)) { bone = get_indexed_bone(base->object, hitresult); if (findunsel) |