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:
committed by
Clément Foucault
parent
d71ce31122
commit
3dfec1ff73
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user