Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2019-05-30 18:54:05 +0300
committerClément Foucault <foucault.clem@gmail.com>2019-05-30 18:54:05 +0300
commit8a4a05ae85c000832121c8218f3bcee9e9917e1a (patch)
tree7659bb4c995213c652bc5ef05846068c83af852b /source
parentf962c701fe5d6fc14956892de58bf4f7d875348d (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')
-rw-r--r--source/blender/editors/space_view3d/view3d_select.c18
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;
}