UI: Select Through Option #109319

Open
Lukas Sneyd wants to merge 11 commits from lcas/blender:select-through into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
First-time contributor

Optional control over whether unseen mesh is selected


Gives user control over xray's influence on box, circle, and lasso select. Blender doesn't intentionally (see #109357) let you select unseen mesh unless xray is on. Blender forces you to select through objects regardless of xray. Inconsistent and unexplained.

I put the controls for select through in a new popover next to the xray header button. Now that xray has its own popover, the xray settings are in there instead of the Shading popover. I also decided that since solid and wireframe have separate xray properties, it should be more obvious. I extended their names to "X-Ray Solid" and "X-Ray Wireframe" inside of the xray popover. I think it's very useful to control which tools use select through. That way you don't have turn it on and off when you switch between tools, assuming you want it on for one of them, and off for the others.

image

This feature is a reduced form of kio's work here: https://archive.blender.org/developer/D6322

The following covers some more optional features that I either excluded, or separated, from this PR. You can see more details about it in my custom build #109150 and at 2:38 of this youtube video. I didn't want to combine multiple features into a single PR, so I kept auto xray #109318 separate from select through. But it makes sense to have both. They don't conflict, and can even complement each other. Everyone I've heard from has said it's necessary that you can control how blender selects edges and faces when using select through. Nobody wants to select unseen facedots, or by the hybrid edge style you get from box and lasso because it can be a bit confusing and unpredictable. This is available here #109309.

My build includes an operator to have a more direct and intuitive control over this modular style of using select through. Having a header button also makes it more clear when select through is enabled. It seemed less likely to be approved if I am adding header buttons, so I didn't do any of that for this PR. The operator checks what tool and mode you're in. If everything is enabled, meaning the main bool and whichever tool and mode is currently in use, the operator will disable the main bool to turn the feature off. Otherwise, it will turn on any of the bools (main, tool, mode) that aren't enabled. An on/off switch that doesn't compromise individual control and gives visual feedback in the header.

To reduce unwanted clutter in the viewport header, I made it where the header buttons for xray, auto xray, and select through are hideable. It is controlled from inside the xray popover. If all of the header buttons are disabled, the xray button will still be visible. Otherwise, any combination of the three buttons are visible in the header.

Optional control over whether unseen mesh is selected --- Gives user control over xray's influence on box, circle, and lasso select. Blender doesn't intentionally (see #109357) let you select unseen mesh unless xray is on. Blender forces you to select through objects regardless of xray. Inconsistent and unexplained. I put the controls for select through in a new popover next to the xray header button. Now that xray has its own popover, the xray settings are in there instead of the Shading popover. I also decided that since solid and wireframe have separate xray properties, it should be more obvious. I extended their names to "X-Ray Solid" and "X-Ray Wireframe" inside of the xray popover. I think it's very useful to control which tools use select through. That way you don't have turn it on and off when you switch between tools, assuming you want it on for one of them, and off for the others. ![image](/attachments/1fd0e775-826a-4cf4-915d-714a406d639f) This feature is a reduced form of kio's work here: https://archive.blender.org/developer/D6322 The following covers some more optional features that I either excluded, or separated, from this PR. You can see more details about it in my [custom build](https://blenderartists.org/t/blender-with-better-selection-and-more/1471220) #109150 and at 2:38 of this [youtube video.](https://www.youtube.com/watch?v=HVrFCOa7RO8&t=158s) I didn't want to combine multiple features into a single PR, so I kept auto xray #109318 separate from select through. But it makes sense to have both. They don't conflict, and can even complement each other. Everyone I've heard from has said it's necessary that you can control how blender selects edges and faces when using select through. Nobody wants to select unseen facedots, or by the hybrid edge style you get from box and lasso because it can be a bit confusing and unpredictable. This is available here #109309. My build includes an operator to have a more direct and intuitive control over this modular style of using select through. Having a header button also makes it more clear when select through is enabled. It seemed less likely to be approved if I am adding header buttons, so I didn't do any of that for this PR. The operator checks what tool and mode you're in. If everything is enabled, meaning the main bool and whichever tool and mode is currently in use, the operator will disable the main bool to turn the feature off. Otherwise, it will turn on any of the bools (main, tool, mode) that aren't enabled. An on/off switch that doesn't compromise individual control and gives visual feedback in the header. To reduce unwanted clutter in the viewport header, I made it where the header buttons for xray, auto xray, and select through are hideable. It is controlled from inside the xray popover. If all of the header buttons are disabled, the xray button will still be visible. Otherwise, any combination of the three buttons are visible in the header.
Lukas Sneyd added 1 commit 2023-06-24 10:47:49 +02:00
Lukas Sneyd added 1 commit 2023-07-05 12:38:10 +02:00
Lukas Sneyd added 1 commit 2023-07-05 12:38:47 +02:00
Lukas Sneyd added 1 commit 2023-07-05 12:41:03 +02:00
Lukas Sneyd added 1 commit 2023-07-11 08:49:33 +02:00
Lukas Sneyd added 1 commit 2023-07-15 23:44:41 +02:00
Lukas Sneyd changed title from WIP: Select Through to Select Through 2023-07-15 23:48:03 +02:00
Author
First-time contributor

I was told to tag you guys. I don't know what I'm supposed to do, but I will try this. Thanks for your time
@ideasman42 @harley

I was told to tag you guys. I don't know what I'm supposed to do, but I will try this. Thanks for your time @ideasman42 @harley
Harley Acheson changed title from Select Through to UI: Select Through Option 2023-07-17 22:47:30 +02:00
Harley Acheson added this to the User Interface project 2023-07-17 22:49:39 +02:00
Lukas Sneyd added 1 commit 2023-07-23 18:21:57 +02:00
Lukas Sneyd added 1 commit 2023-08-01 10:10:54 +02:00
Lukas Sneyd added 1 commit 2023-08-06 08:57:28 +02:00
Lukas Sneyd added 1 commit 2023-08-13 10:03:43 +02:00
Lukas Sneyd added 1 commit 2023-08-21 06:31:56 +02:00
This pull request has changes conflicting with the target branch.
  • scripts/startup/bl_ui/space_view3d.py
  • source/blender/blenloader/intern/versioning_defaults.cc
  • source/blender/editors/space_view3d/view3d_select.cc
  • source/blender/makesdna/DNA_scene_types.h

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u select-through:lcas-select-through
git checkout lcas-select-through
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#109319
No description provided.