Wrong object selection with multiple view layers #55617
Labels
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
8 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#55617
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Kubuntu 17.10, AMD Tonga PRO Radeon R9 285/380 video card with Mesa drivers
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Tonga PRO [Radeon R9 285/380]
Blender Version
Broken:
476b4c415c
Short description of error
Right-click to select sometimes selects the wrong object. Multiple clicks will cycle to the correct object eventually.
Exact steps for others to reproduce the error
Switching the view layers is important; without it, the bug doesn't show up.
recording-2018-06-25_15.35.30.mp4
#62666 was marked as duplicate of this issue
Added subscriber: @dr.sybren
Added subscriber: @JacquesLucke
The problem in the video looks a bit similar to #62666.
Added subscribers: @MACHIN3, @RobertWesseling, @Teds
Right-click selects the wrong objectto Wrong object selection with multiple view layersAdded subscriber: @brecht
DepsgraphNodeBuilder::build_view_layer
assigns each originalObject
a uniqueselect_id
, based on its order in the view layer base list. If there are multiple view layers this can't work correctly, as objects are shared between view layers.context.scene.update()
updates all view layers in the scene, instead of just the active one as usual, so that's another way to trigger the problem.Possible solutions:
a)
select_id
inBase
which is per view layer.b)
select_id
in each originalObject
, based on its position in themain->objects
list.c)
select_id
in each evaluatedObject
which is per view layer.d) Build a temporary hash for selection and don't store it persistently at all.
Removed subscriber: @Teds
Added subscriber: @RainerTrummer
Added subscriber: @dfelinto
Added subscriber: @ideasman42
Evaluating the different options @brecht proposes
a) no change in performance as it is a counter, when selecting the base needs to be checked. which I assume would be no problem, impacts a lot of code as select_id is used in many places
b) smallest change in code, adds loop over all objects in
DepsgraphNodeBuilder::build_view_layer
(negligible performance impact), but does update objects that are not needed at this moment. You could argue if it is logical to add the code to the build_view_layer....c) not 100% sure about c, but that could also be my limmitted knowledge of the depsgraph evaluation. isn't the orig object used when no changes happens to the object?
d) you could argue that this option is the best in design as it solves the issue in the selection code and does not use deps builder at all, but will impact a lot of code as select_id is used in many places and for all these placed we need to find a solution.
Looking at the time we might want to spend on this issue I would go for B in the short term.
Hmmm... armature drawing, meta balls use the select_id on object.
Just discussed for the next solution:
Changed status from 'Open' to: 'Resolved'