Eyedropper (also drag and drop) ignores unselectable IDs (e.g. objects marked unselectable in the Outliner or objects other than armatures in posemode with XRay turned ON) #115617

Open
opened 2023-11-30 16:41:43 +01:00 by michael campbell · 6 comments

System Information
Operating system: Windows-10-10.0.19045-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 537.58

Blender Version
Broken: version: 4.1.0 Alpha, branch: main, commit date: 2023-11-25 22:37, hash: 1b6cd937ffc8
Worked: (3.63)

Short description of error
bone constraint eyedropper doesn't work when opening a 3.63 file in blender 4.1

Exact steps for others to reproduce the error

  1. open below file
  2. click on one of the green finger bones in pose mode
  3. go to bone constraints and press the eyedropper icon on the target input
  4. hover the eyedropper over the hinge geometry in the 3d viewport (not outliner) and click it
  5. doesn't work.
  6. now copy everything and paste into a new blender 4.1
  7. now it will work.
**System Information** Operating system: Windows-10-10.0.19045-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 537.58 **Blender Version** Broken: version: 4.1.0 Alpha, branch: main, commit date: 2023-11-25 22:37, hash: `1b6cd937ffc8` Worked: (3.63) **Short description of error** bone constraint eyedropper doesn't work when opening a 3.63 file in blender 4.1 **Exact steps for others to reproduce the error** 1. open below file 2. click on one of the green finger bones in pose mode 3. go to bone constraints and press the eyedropper icon on the target input 4. hover the eyedropper over the hinge geometry in the 3d viewport (not outliner) and click it 5. doesn't work. 6. now copy everything and paste into a new blender 4.1 7. now it will work.
michael campbell added the
Status
Needs Triage
Priority
Normal
Type
Report
labels 2023-11-30 16:41:44 +01:00
Iliya Katushenock added the
Interest
Animation & Rigging
Interest
Compatibility
labels 2023-11-30 17:02:27 +01:00

Thank you for the report, @3di.

I've checked the file and the issue with the bone constraint eyedropper persisting in Blender 4.1.0 Alpha.
While you mentioned it worked in version 3.63, I also experienced the same issue when attempting to open the file in 3.63.
It seems the issue is specific to this file.
I can confirm the bug.

Thank you for the report, @3di. I've checked the file and the issue with the bone constraint eyedropper persisting in Blender 4.1.0 Alpha. While you mentioned it worked in version 3.63, I also experienced the same issue when attempting to open the file in 3.63. It seems the issue is specific to this file. I can confirm the bug.
Member

This is because XRay is turned ON

It doesnt affect all modes (e.g. in objectmode, this is still fine), XRay has different meanings in different modes.

For armature posemeode, codewise this will enable V3D_OVERLAY_BONE_SELECT
(this will end up only bones being selectable -- and since the eyedropper uses the same selection under the hood, this will also end up for the eyedropper to not pick anything else but armature IDs).

Honestly, not sure if this should be considered a bug, there are many ways for the eyedropper to not function as in: whenever something is not selectable (you could also just turn of selectability for an object in the Outliner), it wont be considered in the eyedropper.

So it will work again if you turn OFF either this

image

or this

image

I assume this is by design, will ask around in chat though...

This is because `XRay` is turned ON It doesnt affect all modes (e.g. in objectmode, this is still fine), XRay has different meanings in different modes. For armature posemeode, codewise this will enable `V3D_OVERLAY_BONE_SELECT` (this will end up only bones being selectable -- and since the eyedropper uses the same selection under the hood, this will also end up for the eyedropper to not pick anything else but armature IDs). Honestly, not sure if this should be considered a bug, there are many ways for the eyedropper to not function as in: whenever something is not selectable (you could also just turn of selectability for an object in the Outliner), it wont be considered in the eyedropper. So it will work again if you turn OFF either this ![image](/attachments/e2f5c79a-0920-4788-b5b8-60203b6a5646) or this ![image](/attachments/4d4670da-c72f-40af-9a0a-7c75ad08edce) I assume this is by design, will ask around in chat though...
Philipp Oeser changed title from bone constraint eyedropper doesn't work when opening a 3.63 file in blender 4.1 to Eyedropper ignores unselectable IDs (e.g. objects marked unselectable in the Outliner or objects other than armatures in posemode with XRay turned ON) 2023-12-01 09:28:37 +01:00
Philipp Oeser added
Module
User Interface
and removed
Module
Animation & Rigging
labels 2023-12-01 09:29:00 +01:00
Philipp Oeser removed the
Interest
Modeling
Interest
Compatibility
Interest
User Interface
labels 2023-12-01 09:40:02 +01:00
Member

Btw. this is also true for drag and drop: e.g. you cant drop a material onto an object which is marked unselectable.
So basically, everything that involves give_base_under_cursor is affected

Btw. this is also true for drag and drop: e.g. you cant drop a material onto an object which is marked unselectable. So basically, everything that involves `give_base_under_cursor` is affected
Philipp Oeser changed title from Eyedropper ignores unselectable IDs (e.g. objects marked unselectable in the Outliner or objects other than armatures in posemode with XRay turned ON) to Eyedropper (also drag and drop) ignores unselectable IDs (e.g. objects marked unselectable in the Outliner or objects other than armatures in posemode with XRay turned ON) 2023-12-01 09:42:51 +01:00
Member

#109115 is very much related

#109115 is very much related

I see. So it appears that in pose mode the eyedropper works with .toggle_xray enabled, but the xray toggle in pose mode doesn't call bpy.ops.view3d.toggle_xray(), instead it calls bpy.data.screens['Layout'].overlay.show_xray_bone, which seems to visually do exactly the same as turning on bpy.data.objects["metarig"].show_in_front. The only difference is that the picker still works with show_in_front.

Perhaps the solution would be to make the xray button set show_in_front in pose mode rather than show_xray_bone? Unless it has some other difference that's useful?

I see. So it appears that in pose mode the eyedropper works with .toggle_xray enabled, but the xray toggle in pose mode doesn't call bpy.ops.view3d.toggle_xray(), instead it calls bpy.data.screens['Layout'].overlay.show_xray_bone, which seems to visually do exactly the same as turning on bpy.data.objects["metarig"].show_in_front. The only difference is that the picker still works with show_in_front. Perhaps the solution would be to make the xray button set show_in_front in pose mode rather than show_xray_bone? Unless it has some other difference that's useful?

The fade geometry shouldn't really be tied to whether the bones are in front? Incidentally geometry doesn't become transparent as suggested by the tooltip, it becomes black:

image

The fade geometry shouldn't really be tied to whether the bones are in front? Incidentally geometry doesn't become transparent as suggested by the tooltip, it becomes black: ![image](/attachments/b9ed5e2a-e49c-4f59-bddf-d6947272c581)
464 KiB
Sign in to join this conversation.
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
3 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#115617
No description provided.