diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-05-30 18:54:05 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-05-30 18:54:05 +0300 |
commit | 8a4a05ae85c000832121c8218f3bcee9e9917e1a (patch) | |
tree | 7659bb4c995213c652bc5ef05846068c83af852b /source/blender/editors | |
parent | f962c701fe5d6fc14956892de58bf4f7d875348d (diff) |
Selectoin: Remove armature bone filters
They seems to do nothing as the filtering seems to already be
done at a higher level.
This fixes T65022 Tracking Markers are not selectable
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_select.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/source/blender/editors/space_view3d/view3d_select.c b/source/blender/editors/space_view3d/view3d_select.c index b3b4910c525..6d741d39aae 100644 --- a/source/blender/editors/space_view3d/view3d_select.c +++ b/source/blender/editors/space_view3d/view3d_select.c @@ -1713,24 +1713,6 @@ static int mixed_bones_object_selectbuffer_extended(ViewContext *vc, int hits = mixed_bones_object_selectbuffer(vc, buffer, mval, select_filter, do_nearest); - if (vc->scene->toolsettings->object_flag & SCE_OBJECT_MODE_LOCK) { - const bool is_pose_mode = ((vc->obact && vc->obact->mode & OB_MODE_POSE) || - (select_filter == VIEW3D_SELECT_FILTER_WPAINT_POSE_MODE_LOCK)); - struct { - uint data[4]; - } *buffer4 = (void *)buffer; - uint j = 0; - for (uint i = 0; i < hits; i++) { - if (((buffer4[i].data[3] & 0xFFFF0000) != 0) == is_pose_mode) { - if (i != j) { - buffer4[j] = buffer4[i]; - } - j++; - } - } - hits = j; - } - return hits; } |