Outliner selection not working correctly after undoing object deletion #99584

Open
opened 2022-07-10 12:25:09 +02:00 by Georg K · 5 comments

System Information
Operating system: Linux-5.17.15-1-MANJARO-x86_64-with-glibc2.35 64 Bits
Graphics card: AMD VERDE (LLVM 13.0.1, DRM 2.50, 5.17.15-1-MANJARO) AMD 4.5 (Core Profile) Mesa 22.1.2

Blender Version
Broken: 2.91.2, 3.2.0, version: 3.3.0 Alpha, branch: master, commit date: 2022-07-05 09:34, hash: fdb854b932
Worked: prior to b077de086e

Short description of error
An object that is linked in another collection can usually be removed from just that collection by using unlink, while using delete removes it from both collections. But if you delete the object and undo, unlink does delete the object in both collections.
Renaming the cube or creating a new object "breaks" the cubes apart so they can be selected/unlinked individually again.

Exact steps for others to reproduce the error
In the default scene,

  • create a new collection
  • in the outliner, ctrl-drag the default cube object to that collection to link it
  • delete the cube
  • undo
  • in the outliner, it is now impossible to select the cube in the new collection separately and using unlink will delete both cubes
**System Information** Operating system: Linux-5.17.15-1-MANJARO-x86_64-with-glibc2.35 64 Bits Graphics card: AMD VERDE (LLVM 13.0.1, DRM 2.50, 5.17.15-1-MANJARO) AMD 4.5 (Core Profile) Mesa 22.1.2 **Blender Version** Broken: 2.91.2, 3.2.0, version: 3.3.0 Alpha, branch: master, commit date: 2022-07-05 09:34, hash: `fdb854b932` Worked: prior to b077de086e **Short description of error** An object that is linked in another collection can usually be removed from just that collection by using unlink, while using delete removes it from both collections. But if you delete the object and undo, unlink does delete the object in both collections. Renaming the cube or creating a new object "breaks" the cubes apart so they can be selected/unlinked individually again. **Exact steps for others to reproduce the error** In the default scene, - create a new collection - in the outliner, ctrl-drag the default cube object to that collection to link it - delete the cube - undo - in the outliner, it is now impossible to select the cube in the new collection separately and using unlink will delete both cubes
Author

Added subscriber: @georgK

Added subscriber: @georgK
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Bastien Montagne added this to the Core project 2023-02-09 15:43:54 +01:00
Bastien Montagne removed this from the Core project 2023-02-09 18:20:30 +01:00
Philipp Oeser removed the
Interest
User Interface
label 2023-02-10 09:21:53 +01:00
Philipp Oeser added the
Interest
Core
label 2023-02-10 11:09:23 +01:00

Looks like when reconstructing the tree, the used attribute of a newly created element is set to 0 rather than 1. It caused the first 2 linked items to share the same TreeStoreElem.

Looks like when reconstructing the tree, the `used` attribute of a newly created element is set to `0` rather than `1`. It caused the first 2 linked items to share the same `TreeStoreElem`.
Member

Since this was caused by b077de086e, will CC @JulianEisel

Since this was caused by b077de086e, will CC @JulianEisel
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
4 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#99584
No description provided.