mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Depth Picking: Do not include non-selectable object in depth picking
This allow to make transparent object not interfere with navigation. Rel #134784 Pull Request: https://projects.blender.org/blender/blender/pulls/135109
This commit is contained in:
parent
d71ce31122
commit
3dfec1ff73
1 changed files with 3 additions and 0 deletions
|
|
@ -2474,6 +2474,9 @@ void DRW_draw_depth_loop(Depsgraph *depsgraph,
|
|||
if (use_only_selected && !(ob->base_flag & BASE_SELECTED)) {
|
||||
continue;
|
||||
}
|
||||
if ((ob->base_flag & BASE_SELECTABLE) == 0) {
|
||||
continue;
|
||||
}
|
||||
blender::draw::ObjectRef ob_ref(data_, ob);
|
||||
dupli_handler.try_add(ob_ref);
|
||||
drw_engines_cache_populate(ob_ref);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue