Selection: Improve Display as Bounds/Wires selection behavior

Make the selection behavior more visually consistent in Render mode.

Pull Request: https://projects.blender.org/blender/blender/pulls/133007
This commit is contained in:
Miguel Pozo
2025-01-17 16:30:32 +01:00
parent d9536fe878
commit 20332e89a9

View File

@@ -190,7 +190,11 @@ class Prepass : Overlay {
Resources &res,
const State &state) final
{
if (!enabled_ || ob_ref.object->dt < OB_SOLID) {
bool is_solid = ob_ref.object->dt >= OB_SOLID ||
(state.v3d->shading.type == OB_RENDER &&
!(ob_ref.object->visibility_flag & OB_HIDE_CAMERA));
if (!enabled_ || !is_solid) {
return;
}