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
This commit is contained in:
Clément Foucault 2019-05-30 17:54:05 +02:00
parent f962c701fe
commit 8a4a05ae85
Notes: blender-bot 2023-02-14 02:28:59 +01:00
Referenced by issue #65022, Tracking Markers are not selectable in the Viewport
1 changed files with 0 additions and 18 deletions

View File

@ -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;
}